3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
AxisCompare Class Reference

Functor allowing for sorting of points in 3D. More...

#include <K3DTree.h>

Public Member Functions

 AxisCompare ()
 
void setAxis (unsigned int Axis)
 
bool operator() (const Point3D &p1, const Point3D &p2) const
 

Detailed Description

Functor allowing for sorting of points in 3D.

Used by KD Tree to sort points based around which splitting axis is being used once the axis is set, points will be ranked based upon their relative value in that axis only

Constructor & Destructor Documentation

◆ AxisCompare()

AxisCompare::AxisCompare ( )

Member Function Documentation

◆ operator()()

bool AxisCompare::operator() ( const Point3D p1,
const Point3D p2 
) const
inline

◆ setAxis()

void AxisCompare::setAxis ( unsigned int  Axis)

Referenced by K3DTree::buildByRef().

Here is the caller graph for this function:

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