Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

BBox3 Class Template Reference
[Math3]

A template class for 2D boundary box. More...

#include <gmlbbox3.h>

List of all members.

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.


Detailed Description

template<class T>
class gml::BBox3< T >

A template class for 2D boundary box.


The documentation for this class was generated from the following file:
Generated on Tue Jan 13 21:12:06 2004 for Graphics and Media Lab CSL by doxygen 1.3.4