KiCad PCB EDA Suite
ComparePoints Struct Reference

Public Member Functions

 ComparePoints (int d)
 
bool operator() (const BVHPrimitiveInfo &a, const BVHPrimitiveInfo &b) const
 

Public Attributes

int dim
 

Detailed Description

Definition at line 357 of file cbvh_pbrt.cpp.

Constructor & Destructor Documentation

◆ ComparePoints()

ComparePoints::ComparePoints ( int  d)
inlineexplicit

Definition at line 359 of file cbvh_pbrt.cpp.

359 { dim = d; }

References dim.

Member Function Documentation

◆ operator()()

bool ComparePoints::operator() ( const BVHPrimitiveInfo a,
const BVHPrimitiveInfo b 
) const
inline

Definition at line 363 of file cbvh_pbrt.cpp.

365  {
366  return a.centroid[dim] < b.centroid[dim];
367  }

References BVHPrimitiveInfo::centroid, and dim.

Member Data Documentation

◆ dim

int ComparePoints::dim

Definition at line 361 of file cbvh_pbrt.cpp.

Referenced by ComparePoints(), and operator()().


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