A line segment obstacle class. More...
#include <LineObstacle.h>
Public Member Functions | |
~LineObstacle () | |
Obstacle functionality | |
Vector2D | p1 () const |
Returns the fist endpoint of the line segment. | |
Vector2D | p2 () const |
Returns the second endpoint of the line segment. | |
Vector2D | normal () const |
Returns the normal of the line obstacle. | |
Protected Attributes | |
Vector2D | _p1 |
The first endpoint of the obstacle. | |
Vector2D | _p2 |
The second endpoint of the obstacle. | |
Vector2D | _normal |
The normal vector of the line obstacle. | |
A line segment obstacle class.
TTC::LineObstacle::~LineObstacle | ( | ) |
Destructor.