39 if (ax > bx)
return true;
Abstract class defining the common behavior for all primitives.
Definition: Primitive.h:24
virtual glm::dvec3 getCentroid()=0
Obtain the primitive centroid.
KDTree primitive comparator.
Definition: KDTreePrimitiveComparator.h:8
int axis
Index of axis considered for the comparison.
Definition: KDTreePrimitiveComparator.h:14
KDTreePrimitiveComparator(int axis)
Constructor for KDTree primitive comparator.
Definition: KDTreePrimitiveComparator.h:22
bool operator()(Primitive *a, Primitive *b)
KDTree primitive comparator functor.
Definition: KDTreePrimitiveComparator.h:36