interface Obstacle2D : Serializable, Shape
getId |
abstract fun getId(): Int |
nearestIntersection |
Given a vector (represented as a starting point and an end point) and a rectangle, computes the intersection point between the vector and the rectangle nearest to the vector's starting point. abstract fun nearestIntersection(startx: Double, starty: Double, endx: Double, endy: Double): DoubleArray! |
next |
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. abstract fun next(sx: Double, sy: Double, ex: Double, ey: Double): Pair<Double!, Double!>! |