abstract fun next(sx: Double, sy: Double, ex: Double, ey: Double): Pair<Double!, Double!>!
Given a vector (starting point and end point) representing a requested move, this method computes a new end point, representing a cut version of the initial vector, modified in such a way that the end point is outside the obstacle.
sx - Double: start x coordinate of the vector
sy - Double: start y coordinate of the vector
ex - Double: end x coordinate of the vector
ey - Double: end y coordinate of the vector
Return
Pair<Double!, Double!>!: the intersection point between the vector and the rectangle nearest to the vector's starting point