|
| constexpr | Line () noexcept=default |
| |
| constexpr | Line (const V &p, const V &d) noexcept |
| |
| template<typename U > |
| constexpr | Line (const Line< U > &l) noexcept |
| |
| V | operator() (T param) const |
| | returns point on the line, where param=0 returns p and param=1 returns p+d
|
| |
| T | distanceSq (const V &x) const |
| | returns squared distance from given point to this line
|
| |
| Line | operator- () const |
| | returns same line represented with flipped direction of d-vector
|
| |
| const Line & | operator+ () const |
| | returns same representation
|
| |
| Line | normalized () const |
| | returns same line represented with unit d-vector
|
| |
| V | project (const V &x) const |
| | finds the closest point on line
|
| |
template<typename V>
struct MR::Line< V >
2- or 3-dimensional line: cross( x - p, d ) = 0