|
Hermes
|
Represents a 2D line by a point and a vector. More...
#include <line.h>
Public Member Functions | |
| Line2 (point2 _a, vec2 _d) | |
| point2 | operator() (float t) const |
| vec2 | direction () const |
| float | projection (point2 p) const |
| point2 | closestPoint (point2 p) const |
Public Attributes | |
| point2 | a |
| line point | |
| vec2 | d |
| line direction | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Line2 &p) |
Represents a 2D line by a point and a vector.
| p | point |
|
inline |
| t | parametric coordinate |
| p | point |