Obstacle2D
An Obstacle in a bidimensional space.
Parameters
<V>
the vector type for the space in which this obstacle is placed.
Inheritors
Functions
Link copied to clipboard
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.
Link copied to clipboard
The farthest point reachable moving from this point towards other, see farthestValidVectorFromTo.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Given a vector (represented as a starting point and an end point), computes the intersection point between the vector and the obstacle nearest to the vector's starting point.
Link copied to clipboard
Obtains the vertices of a polygonal shape. Any curved segment connecting two points will be considered as a straight line between them.