#include <MRLineSegm.h>
|
| using | T = typename V::ValueType |
| |
|
| 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
|
| |
◆ LineSegm() [1/3]
template<typename V >
|
|
nodiscardconstexprdefaultnoexcept |
◆ LineSegm() [2/3]
template<typename V >
|
|
inlinenodiscardconstexprnoexcept |
◆ LineSegm() [3/3]
template<typename V >
template<typename U >
|
|
inlineexplicitnodiscardconstexprnoexcept |
◆ dir()
returns directional vector of the line
◆ length()
returns the length of this line segment
◆ lengthSq()
returns squared length of this line segment
◆ operator()()
returns point on the line, where param=0 returns a and param=1 returns b
The documentation for this struct was generated from the following file: