a segment of straight dimensional line More...
#include <MRLineSegm.h>
Public Types | |
| using | T = typename V::ValueType |
Public Member Functions | |
| constexpr | LineSegm () noexcept=default |
| constexpr | LineSegm (const V &a, const V &b) noexcept |
| template<typename U > | |
| constexpr | LineSegm (const LineSegm< U > &p) noexcept |
| V | dir () const |
| returns directional vector of the line | |
| T | lengthSq () const |
| returns squared length of this line segment | |
| T | length () const |
| returns the length of this line segment | |
| V | operator() (T param) const |
| returns point on the line, where param=0 returns a and param=1 returns b | |
Public Attributes | |
| V | a |
| V | b |
a segment of straight dimensional line