MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::SegmPoint< T > Struct Template Reference

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 >
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

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()
 

Detailed Description

template<typename T>
struct MR::SegmPoint< T >

encodes a point inside a line segment using relative distance in [0,1]


The documentation for this struct was generated from the following file: