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 347 of file cbvh_pbrt.cpp.

Constructor & Destructor Documentation

ComparePoints::ComparePoints ( int  d)

Definition at line 349 of file cbvh_pbrt.cpp.

References dim.

349 { dim = d; }

Member Function Documentation

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

Definition at line 353 of file cbvh_pbrt.cpp.

References BVHPrimitiveInfo::centroid, and dim.

355  {
356  return a.centroid[dim] < b.centroid[dim];
357  }

Member Data Documentation

int ComparePoints::dim

Definition at line 351 of file cbvh_pbrt.cpp.

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

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