DGtal 2.1.0
Loading...
Searching...
No Matches
LessThanOnFace< Vector > Struct Template Reference

Public Member Functions

 LessThanOnFace (const Vector &aN, const Vector &aP, const std::vector< Vector > &aPts)
 
bool operator() (unsigned int i1, unsigned int i2) const
 

Data Fields

Vector N
 
Vector P
 
const std::vector< Vector > & pts
 

Detailed Description

template<typename Vector>
struct LessThanOnFace< Vector >
Examples
io/viewDualSurface.cpp.

Definition at line 62 of file viewDualSurface.cpp.

Constructor & Destructor Documentation

◆ LessThanOnFace()

template<typename Vector >
LessThanOnFace< Vector >::LessThanOnFace ( const Vector aN,
const Vector aP,
const std::vector< Vector > &  aPts 
)
inline

Definition at line 67 of file viewDualSurface.cpp.

69 : N( aN ), P( aP ), pts( aPts )
70 {}
const std::vector< Vector > & pts

Member Function Documentation

◆ operator()()

template<typename Vector >
bool LessThanOnFace< Vector >::operator() ( unsigned int  i1,
unsigned int  i2 
) const
inline
Examples
io/viewDualSurface.cpp.

Definition at line 71 of file viewDualSurface.cpp.

72 {
73 return N.dot( wedge( pts[ i1 ] - P, pts[ i2 ] - P ) ) > 0;
74 }
auto dot(const PointVector< dim, OtherComponent, OtherStorage > &v) const -> decltype(DGtal::dotProduct(*this, v))
Dot product with a PointVector.
Vector wedge(const Vector &v1, const Vector &v2)

References DGtal::PointVector< dim, TEuclideanRing, TContainer >::dot(), LessThanOnFace< Vector >::N, LessThanOnFace< Vector >::P, LessThanOnFace< Vector >::pts, and wedge().

Field Documentation

◆ N

template<typename Vector >
Vector LessThanOnFace< Vector >::N
Examples
io/viewDualSurface.cpp.

Definition at line 64 of file viewDualSurface.cpp.

Referenced by LessThanOnFace< Vector >::operator()().

◆ P

template<typename Vector >
Vector LessThanOnFace< Vector >::P
Examples
io/viewDualSurface.cpp.

Definition at line 65 of file viewDualSurface.cpp.

Referenced by LessThanOnFace< Vector >::operator()().

◆ pts

template<typename Vector >
const std::vector< Vector >& LessThanOnFace< Vector >::pts
Examples
io/viewDualSurface.cpp.

Definition at line 66 of file viewDualSurface.cpp.

Referenced by LessThanOnFace< Vector >::operator()().


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