osg::ExtrusionSurface::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 osg::ExtrusionSurface::vecless< type >

vector comparison

Definition at line 227 of file OSGExtrusionGeometry.h.


Member Function Documentation

template<class type>
bool osg::ExtrusionSurface::vecless< type >::operator() ( const type &  a,
const type &  b 
) const [inline]

Definition at line 65 of file OSGExtrusionGeometry.inl.

References osg::Eps, and osg::osgabs().

00067 {
00068     UInt32  i;
00069     bool    ret = false;
00070     for(i = 0; i < type::_iSize; i++)
00071     {
00072         if(osgabs(a[i] - b[i]) < Eps)
00073             continue;
00074         if(a[i] > b[i])
00075         {
00076             ret = false;
00077             break;
00078         }
00079         ret = true;
00080         break;
00081     }
00082     return ret;
00083 }


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

Generated on Mon Mar 17 12:06:44 2008 for OpenSG by  doxygen 1.5.5