#include <gmlbbox3.h>
Public Member Functions | |
Constructors | |
BBox3 () | |
no initialization | |
BBox3 (const TVector3< T > &point) | |
from point | |
BBox3 (const TVector3< T > &point1, const TVector3< T > &point2) | |
from two points | |
Comparison operators and methods | |
bool | NotEmpty () const |
Test for validity. | |
bool | IsDot () const |
If the box is actually a dot. | |
bool | Includes (const TVector3< T > &point) const |
Test for point inclusion. | |
bool | Includes (const BBox3< T > &box) const |
Test for box inclusion. | |
bool | Intersects (const BBox3< T > &box) const |
Test for intersection. | |
Miscellanious methods | |
void | Include (const TVector3< T > &point) |
Expand the box to include the given point. | |
void | Include (const TVector3< T > *points, int npoints) |
Expand the box to include the given points. | |
void | Include (const BBox3< T > &box) |
Expand the box to include the given box. | |
void | Include (const BBox3< T > *bboxes, int nbboxes) |
Expand the box to include the given boxes. | |
void | Intersect (const BBox3< T > &box) |
Intersect with given box. | |
void | ExpandBy (const T &in_Value) |
Adjust size by given value (give < 0 to deflate). | |
void | ExpandBy (const TVector3< T > &expand_vec) |
Adjust sizes by given value (give < 0 to deflate). | |
void | Translate (const TVector3< T > &vct) |
Translate the box to given vector. | |
BBox3< T > | Translated (const TVector3< T > &vct) const |
Returns box translated by vct. | |
TVector3< T > | Diag () const |
Return diagonal. | |
TVector3< T > | Center () const |
Return Center of this box. | |
double | Volume () const |
Return value of the volume. | |
Public Attributes | |
TVector3< T > | vmin |
Minimal boundary. | |
TVector3< T > | vmax |
Maximal boundary. |