#include <BvhTree.h>
◆ AxisComparator()
| inet::BvhTree::AxisComparator::AxisComparator |
( |
char |
axis | ) |
|
|
inline |
◆ operator()()
57 Coord leftPos =
left->getPosition() +
left->getShape()->computeBoundingBoxSize() / 2;
58 Coord rightPos =
right->getPosition() +
right->getShape()->computeBoundingBoxSize() / 2;
60 case 'X':
return leftPos.x < rightPos.x;
61 case 'Y':
return leftPos.y < rightPos.y;
62 case 'Z':
return leftPos.z < rightPos.z;
63 default:
throw cRuntimeError(
"Unknown axis");
◆ axis
| char inet::BvhTree::AxisComparator::axis |
The documentation for this struct was generated from the following file: