Public Member Functions | |
| bool | operator() (const type &a, const type &b) const |
Definition at line 326 of file OSGGeoFunctions.cpp.
| bool vecless< type >::operator() | ( | const type & | a, | |
| const type & | b | |||
| ) | const [inline] |
Definition at line 328 of file OSGGeoFunctions.cpp.
References osg::Eps, and osg::osgabs().
00329 { 00330 UInt32 i; 00331 bool ret = false; 00332 00333 for(i = 0; i < type::_iSize; i++) 00334 { 00335 if(osgabs(a[i] - b[i]) < Eps) 00336 continue; 00337 00338 if(a[i] > b[i]) 00339 { 00340 ret = false; 00341 break; 00342 } 00343 ret = true; 00344 break; 00345 } 00346 return ret; 00347 }
1.5.5