Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
igl::IndexDimLessThan< T > Struct Template Reference

#include <src/libigl/igl/IndexComparison.h>

Public Member Functions

 IndexDimLessThan (const T &mat, const int &dim, const int &j)
 
bool operator() (const size_t a, const size_t b) const
 

Public Attributes

const T & mat
 
const int & dim
 
const int & j
 

Detailed Description

template<class T>
struct igl::IndexDimLessThan< T >

Constructor & Destructor Documentation

◆ IndexDimLessThan()

template<class T >
igl::IndexDimLessThan< T >::IndexDimLessThan ( const T &  mat,
const int &  dim,
const int &  j 
)
inline
51 :
52 mat(mat),
53 dim(dim),
54 j(j)
55 {}
const int & j
Definition IndexComparison.h:68
const T & mat
Definition IndexComparison.h:66
const int & dim
Definition IndexComparison.h:67

Member Function Documentation

◆ operator()()

template<class T >
bool igl::IndexDimLessThan< T >::operator() ( const size_t  a,
const size_t  b 
) const
inline
57 {
58 if(dim == 1)
59 {
60 return mat(a,j) < mat(b,j);
61 }else
62 {
63 return mat(j,a) < mat(j,b);
64 }
65 }

References igl::IndexDimLessThan< T >::dim, igl::IndexDimLessThan< T >::j, and igl::IndexDimLessThan< T >::mat.

Member Data Documentation

◆ dim

template<class T >
const int& igl::IndexDimLessThan< T >::dim

◆ j

template<class T >
const int& igl::IndexDimLessThan< T >::j

◆ mat

template<class T >
const T& igl::IndexDimLessThan< T >::mat

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