VISH
0.2
|
A coordinate-parallel bounding box in three dimensions. More...
#include </home/werner/origo/vish/ocean/aerie/BoundingBox.hpp>
A coordinate-parallel bounding box in three dimensions.
Bounding boxes are derived from bounding balls, which may be used as base classes providing simpler, and more symmetric information. Consequently, any time a bounding box is updated, also the bounding ball information needs to be updated, because such is not computed on demand for performance reasons. Do so by explictely calling updateBall() after a set of points as been included in the bounding box.
BoundingBox::BoundingBox | ( | ) |
Default constructor, initializes the bounding box to be placed at (0,0,0) with size zero.
The empty() member function will return true, like in any case of a bounding box having volume zero.
void Eagle::BoundingBox::embrace | ( | const point_t & | crd | ) | [inline] |
Expand the bounding box range to encompass the given coordinate.
Need to call updateBall() afterwards.
void Eagle::BoundingBox::insert | ( | const BoundingBox & | BB | ) | [inline] |
Expand the bounding box range to encompass the given bounding box.
Need to call updateBall() afterwards.