#include <BoundingBox.h>
prtx::BoundingBox::BoundingBox |
( |
| ) |
|
Constructs an "empty" bounding box with infinite bounds.
Constructs bounding box with preset bounds.
prtx::BoundingBox::BoundingBox |
( |
const double * |
extMin, |
|
|
const double * |
extMax |
|
) |
| |
Constructs bounding box with preset bounds.
void prtx::BoundingBox::add |
( |
const BoundingBox & |
bbox | ) |
|
Extend with another bounding box.
void prtx::BoundingBox::add |
( |
const double & |
x, |
|
|
const double & |
y, |
|
|
const double & |
z |
|
) |
| |
Extend bounding box to point (x,y,z).
- Returns
- The center point (3 elements).
- Returns
- The "bottom" center point. Bottom is relative to y-direction.
double prtx::BoundingBox::getDiameter |
( |
| ) |
const |
- Returns
- A reference to the max point.
- Returns
- A reference to the min point.
Resizes s to 3 elements and returns the size of the box.
bool prtx::BoundingBox::isModified |
( |
| ) |
const |
- Returns
- True, if anything as been added to the bounding box. False, if bounding box is "empty", i.e. has infinite bounds.
void prtx::BoundingBox::reset |
( |
| ) |
|
Reset to infinite bounds.
Translates bounding box by vector t, t must have 3 elements.
The documentation for this class was generated from the following file: