Helios++
Helios software for LiDAR simulations
KDTreePrimitiveComparator Struct Reference

KDTree primitive comparator. More...

#include <KDTreePrimitiveComparator.h>

Public Member Functions

 KDTreePrimitiveComparator (int axis)
 Constructor for KDTree primitive comparator. More...
 
bool operator() (Primitive *a, Primitive *b)
 KDTree primitive comparator functor. More...
 

Public Attributes

int axis
 Index of axis considered for the comparison.
 

Detailed Description

KDTree primitive comparator.

Constructor & Destructor Documentation

◆ KDTreePrimitiveComparator()

KDTreePrimitiveComparator::KDTreePrimitiveComparator ( int  axis)
inlineexplicit

Constructor for KDTree primitive comparator.

Parameters
axis

Member Function Documentation

◆ operator()()

bool KDTreePrimitiveComparator::operator() ( Primitive a,
Primitive b 
)
inline

KDTree primitive comparator functor.

Parameters
aFirst primitive for the comparison
bSecond primitive for the comparison
Returns
True of coordinate of primitive a at corresponding axis is greater than coordinate of primitive b at the same axis, false otherwise

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