VISH  0.2
Public Types | Public Member Functions | Protected Member Functions
Eagle::BoundingBox Class Reference

A coordinate-parallel bounding box in three dimensions. More...

#include </home/werner/origo/vish/ocean/aerie/BoundingBox.hpp>

List of all members.

Public Types

Public Member Functions

Protected Member Functions


Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files: