mesh_conv::MC_v4d_less Class Reference

Comparator class for set and map. More...

#include <MC_v4d.hpp>

List of all members.

Public Member Functions

bool operator() (const MC_v4d &v0, const MC_v4d &v1) const

Detailed Description

Comparator class for set and map.

Definition at line 219 of file MC_v4d.hpp.


Member Function Documentation

bool mesh_conv::MC_v4d_less::operator() ( const MC_v4d v0,
const MC_v4d v1 
) const [inline]

Definition at line 222 of file MC_v4d.hpp.

00223   {
00224 
00225     double epsilon=0.000001;
00226     if( fabs(v0[0]-v1[0])<epsilon && fabs(v0[1]-v1[1])<epsilon && fabs(v0[2]-v1[2])<epsilon )
00227       return false;
00228 
00229 
00230     if(v0[0]<v1[0])
00231       return true;
00232     else if ( !(v1[0]<v0[0]) && v0[1]<v1[1] )
00233       return true;
00234     else if ( !(v1[0]<v0[0]) && !(v1[1]<v0[1]) && v0[2]<v1[2] )
00235       return true;
00236     else if ( !(v1[0]<v0[0]) && !(v1[1]<v0[1]) && v0[2]<v1[2] && v0[3]<v1[3] )
00237       return true;
00238 
00239     return false;
00240   }


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

Generated on Sun Apr 18 20:24:48 2010 by  doxygen 1.6.1