Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

BoundingBox Class Reference
[Scene Graph]

#include <lvt/BoundingBox.h>

List of all members.


Detailed Description

An axis-aligned bounding box.


Public Member Functions

 BoundingBox (const Vec &min, const Vec &max)
 Constructs a new BoundingBox containing the two points min and max.
 BoundingBox ()
 Default constructor.
bool HitTest (const Vec &point) const
 Returns true if the specified point is contained in the BoundingBox.
bool IsValid () const
 Returns true if the BoundingBox is currently in a valid state.
Vec Max () const
 Returns the "upper-right" corner of the BoundingBox.
Vec Min () const
 Returns the "lower-left" corner of the BoundingBox.
BoundingBoxoperator+= (const Vec &v)
 Adjusts the BoundingBox to contain its current volume, plus the specified point.
BoundingBoxoperator+= (const BoundingBox &rhs)
 Adjusts the BoundingBox to contain its current volume, plus the volume of the specified BoundingBox.


Constructor & Destructor Documentation

BoundingBox  )  [inline]
 

Default constructor.

When a BoundingBox is constructed with this constructor, it is initially in an invalid state. Any hit tests against an invalid BoundingBox will always return false.

BoundingBox const Vec min,
const Vec max
[inline]
 

Constructs a new BoundingBox containing the two points min and max.


Member Function Documentation

bool HitTest const Vec point  )  const [inline]
 

Returns true if the specified point is contained in the BoundingBox.

bool IsValid  )  const [inline]
 

Returns true if the BoundingBox is currently in a valid state.

Vec Max  )  const [inline]
 

Returns the "upper-right" corner of the BoundingBox.

Vec Min  )  const [inline]
 

Returns the "lower-left" corner of the BoundingBox.

BoundingBox& operator+= const Vec v  )  [inline]
 

Adjusts the BoundingBox to contain its current volume, plus the specified point.

BoundingBox& operator+= const BoundingBox rhs  )  [inline]
 

Adjusts the BoundingBox to contain its current volume, plus the volume of the specified BoundingBox.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1