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

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

Public Member Functions

 IndexRowLessThan (const T &mat)
 
bool operator() (const size_t a, const size_t b) const
 

Public Attributes

const T & mat
 

Detailed Description

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

Constructor & Destructor Documentation

◆ IndexRowLessThan()

template<class T >
igl::IndexRowLessThan< T >::IndexRowLessThan ( const T &  mat)
inline
74: mat ( mat) {}
const T & mat
Definition IndexComparison.h:92

Member Function Documentation

◆ operator()()

template<class T >
bool igl::IndexRowLessThan< T >::operator() ( const size_t  a,
const size_t  b 
) const
inline
76 {
77 const int cols = mat.cols();
78 // Lexicographical order
79 for(int j = 0;j<cols;j++)
80 {
81 if(mat(a,j) > mat(b,j))
82 {
83 return false;
84 } else if(mat(a,j) < mat(b,j))
85 {
86 return true;
87 }
88 }
89 // equality is false
90 return false;
91 }
size_t cols(const T &raster)
Definition MarchingSquares.hpp:60

References igl::IndexRowLessThan< T >::mat.

Member Data Documentation

◆ mat

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

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