vecless< type > Struct Template Reference

List of all members.

Public Member Functions

bool operator() (const type &a, const type &b) const


Detailed Description

template<class type>
struct vecless< type >

vector comparison

Definition at line 326 of file OSGGeoFunctions.cpp.


Member Function Documentation

template<class type>
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     }


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

Generated on Mon Mar 17 12:03:00 2008 for OpenSG by  doxygen 1.5.5