MeshLib Documentation
Loading...
Searching...
No Matches
MR::LineSegm< V > Struct Template Reference

#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
 
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
 
operator() (T param) const
 returns point on the line, where param=0 returns a and param=1 returns b
 

Public Attributes

a
 
b
 

Member Typedef Documentation

◆ T

template<typename V >
using MR::LineSegm< V >::T = typename V::ValueType

Constructor & Destructor Documentation

◆ LineSegm() [1/3]

template<typename V >
MR::LineSegm< V >::LineSegm ( )
nodiscardconstexprdefaultnoexcept

◆ LineSegm() [2/3]

template<typename V >
MR::LineSegm< V >::LineSegm ( const V & a,
const V & b )
inlinenodiscardconstexprnoexcept

◆ LineSegm() [3/3]

template<typename V >
template<typename U >
MR::LineSegm< V >::LineSegm ( const LineSegm< U > & p)
inlineexplicitnodiscardconstexprnoexcept

Member Function Documentation

◆ dir()

template<typename V >
V MR::LineSegm< V >::dir ( ) const
inlinenodiscard

returns directional vector of the line

◆ length()

template<typename V >
T MR::LineSegm< V >::length ( ) const
inlinenodiscard

returns the length of this line segment

◆ lengthSq()

template<typename V >
T MR::LineSegm< V >::lengthSq ( ) const
inlinenodiscard

returns squared length of this line segment

◆ operator()()

template<typename V >
V MR::LineSegm< V >::operator() ( T param) const
inlinenodiscard

returns point on the line, where param=0 returns a and param=1 returns b

Member Data Documentation

◆ a

template<typename V >
V MR::LineSegm< V >::a

◆ b

template<typename V >
V MR::LineSegm< V >::b

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