![]() |
Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Defines a directed line. More...
#include <Line.h>
Public Member Functions | |
| Line () | |
| Default constructor. | |
| Line (const Vector2 &p, const Vector2 &d) | |
| Explicit constructor. More... | |
| Vector2 | nearestPt (const Vector2 &p) const |
| Returns the nearest point on the line to p. More... | |
Public Attributes | |
| Vector2 | _point |
| A point on the directed line. | |
| Vector2 | _direction |
| The direction of the directed line. | |
Defines a directed line.
Explicit constructor.
| p | A point on the line. |
| d | A unit-length vector defining the direction of the line. the line is defined by p + dt, where t in the range [-infinity, infinity]. |
Returns the nearest point on the line to p.
| p | The point to which we want to find the nearest point. |
1.8.8