KiCad PCB EDA Suite
CompareToMid Struct Reference

Public Member Functions

 CompareToMid (int d, float m)
bool operator() (const BVHPrimitiveInfo &a) const

Public Attributes

int dim
float mid

Detailed Description

Definition at line 361 of file cbvh_pbrt.cpp.

Constructor & Destructor Documentation

CompareToMid::CompareToMid ( int  d,
float  m 

Definition at line 363 of file cbvh_pbrt.cpp.

363 { dim = d; mid = m; }

Member Function Documentation

bool CompareToMid::operator() ( const BVHPrimitiveInfo a) const

Definition at line 368 of file cbvh_pbrt.cpp.

References BVHPrimitiveInfo::centroid.

369  {
370  return a.centroid[dim] < mid;
371  }

Member Data Documentation

int CompareToMid::dim

Definition at line 365 of file cbvh_pbrt.cpp.

float CompareToMid::mid

Definition at line 366 of file cbvh_pbrt.cpp.

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