encodes a point inside a line segment using relative distance in [0,1] More...
#include <MRSegmPoint.h>
Public Member Functions | |
| SegmPoint ()=default | |
| SegmPoint (T a) | |
| operator T () const | |
| operator T& () | |
| template<typename U > | |
| U | interpolate (const U &v0, const U &v1) const |
| given values in two vertices, computes interpolated value at this point | |
| int | inVertex () const |
| returns [0,1] if the point is in a vertex or -1 otherwise | |
| SegmPoint | sym () const |
| represents the same point relative to oppositely directed segment | |
| bool | operator== (const SegmPoint &rhs) const =default |
| returns true if two points have equal (a) representation | |
| bool | operator== (T rhs) const |
Public Attributes | |
| T | a = 0 |
| a in [0,1], a=0 => point is in v0, a=1 => point is in v1 | |
Static Public Attributes | |
| static constexpr auto | eps = 10 * std::numeric_limits<T>::epsilon() |
encodes a point inside a line segment using relative distance in [0,1]
|
default |
|
inline |
|
inlinenodiscard |
given values in two vertices, computes interpolated value at this point
|
inlinenodiscard |
returns [0,1] if the point is in a vertex or -1 otherwise
|
inline |
|
inline |
|
nodiscarddefault |
returns true if two points have equal (a) representation
|
inlinenodiscard |
|
inlinenodiscard |
represents the same point relative to oppositely directed segment
| T MR::SegmPoint< T >::a = 0 |
a in [0,1], a=0 => point is in v0, a=1 => point is in v1
|
staticconstexpr |