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

#include <MRPolylineProject.h>

Public Member Functions

bool valid () const
 check for validity, otherwise the projection was not found
 
 operator bool () const
 

Public Attributes

UndirectedEdgeId line
 polyline's edge containing the closest point
 
point
 closest point on polyline, transformed by xf if it is given
 
float distSq = 0
 squared distance from pt to proj
 

Member Function Documentation

◆ operator bool()

template<typename V >
MR::PolylineProjectionResult< V >::operator bool ( ) const
inlineexplicitnodiscard

◆ valid()

template<typename V >
bool MR::PolylineProjectionResult< V >::valid ( ) const
inlinenodiscard

check for validity, otherwise the projection was not found

Member Data Documentation

◆ distSq

template<typename V >
float MR::PolylineProjectionResult< V >::distSq = 0

squared distance from pt to proj

◆ line

template<typename V >
UndirectedEdgeId MR::PolylineProjectionResult< V >::line

polyline's edge containing the closest point

◆ point

template<typename V >
V MR::PolylineProjectionResult< V >::point

closest point on polyline, transformed by xf if it is given


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