Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

gmtl::CompareIndexPointProjections Struct Reference

#include <Comparitors.h>

List of all members.

Public Methods

 CompareIndexPointProjections ()
bool operator() (const unsigned x, const unsigned y)

Public Attributes

const std::vector< Point3 > * points
gmtl::Vec3 sortDir


Constructor & Destructor Documentation

gmtl::CompareIndexPointProjections::CompareIndexPointProjections   [inline]
 

Definition at line 54 of file Comparitors.h.

References points.

00054                                      : points(NULL)
00055       {;}


Member Function Documentation

bool gmtl::CompareIndexPointProjections::operator() const unsigned    x,
const unsigned    y
[inline]
 

Definition at line 57 of file Comparitors.h.

References points, and sortDir.

00058       {
00059          float xVal = sortDir.dot((*points)[x]);
00060          float yVal = sortDir.dot((*points)[y]);
00061 
00062          return (xVal < yVal);
00063       }


Member Data Documentation

const std::vector<Point3>* gmtl::CompareIndexPointProjections::points
 

Definition at line 65 of file Comparitors.h.

Referenced by CompareIndexPointProjections, and operator().

gmtl::Vec3 gmtl::CompareIndexPointProjections::sortDir
 

Definition at line 66 of file Comparitors.h.

Referenced by operator().


The documentation for this struct was generated from the following file:
Generated on Mon Apr 7 15:29:27 2003 for GenericMathTemplateLibrary by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002