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