Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

physics::BoundingBox Class Reference

Collaboration diagram for physics::BoundingBox:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BoundingBox ()
 BoundingBox (const BoundingBox &bb)
 BoundingBox (const base::Point3 &lower, const base::Point3 &upper)
 ~BoundingBox ()
base::Point3 lower () const
base::Point3 upper () const
void setExtents (const base::Point3 &lower, const base::Point3 &upper)
void setCenter (const base::Point3 &center)
void setDimension (const base::Dimension3 &dim)
base::Dimension3 getDimension () const
void setEmpty ()
void enclose (const BoundingBox &a, const BoundingBox &b)
void include (const base::Point3 &p)
void include (const BoundingBox &bb)
void transform (const base::Transform &t)
Real size () const
Int longestAxis () const

Static Public Member Functions

bool intersect (const BoundingBox &a, const BoundingBox &b)

Constructor & Destructor Documentation

physics::BoundingBox::BoundingBox  )  [inline]
 

Definition at line 40 of file BoundingBox.

physics::BoundingBox::BoundingBox const BoundingBox bb  )  [inline]
 

Definition at line 41 of file BoundingBox.

physics::BoundingBox::BoundingBox const base::Point3 lower,
const base::Point3 upper
[inline]
 

Definition at line 43 of file BoundingBox.

References base::Point3, and setExtents().

physics::BoundingBox::~BoundingBox  )  [inline]
 

Definition at line 45 of file BoundingBox.


Member Function Documentation

void physics::BoundingBox::enclose const BoundingBox a,
const BoundingBox b
 

Referenced by include().

base::Dimension3 physics::BoundingBox::getDimension  )  const [inline]
 

Definition at line 56 of file BoundingBox.

References base::Dimension3.

void physics::BoundingBox::include const BoundingBox bb  )  [inline]
 

Definition at line 65 of file BoundingBox.

References enclose().

void physics::BoundingBox::include const base::Point3 p  ) 
 

Referenced by physics::CollidableGroup::getBoundingBox().

bool physics::BoundingBox::intersect const BoundingBox a,
const BoundingBox b
[inline, static]
 

Definition at line 76 of file BoundingBox.

References center, extent, base::Vector3::x, base::Vector3::y, and base::Vector3::z.

Int physics::BoundingBox::longestAxis  )  const [inline]
 

Definition at line 74 of file BoundingBox.

References base::Vector3::largestAxis().

base::Point3 physics::BoundingBox::lower  )  const [inline]
 

Definition at line 47 of file BoundingBox.

References base::Point3.

void physics::BoundingBox::setCenter const base::Point3 center  )  [inline]
 

Definition at line 54 of file BoundingBox.

References base::Point3.

void physics::BoundingBox::setDimension const base::Dimension3 dim  )  [inline]
 

Definition at line 55 of file BoundingBox.

References base::Dimension3.

void physics::BoundingBox::setEmpty  )  [inline]
 

Definition at line 58 of file BoundingBox.

References base::Point3.

Referenced by physics::CollidableGroup::getBoundingBox().

void physics::BoundingBox::setExtents const base::Point3 lower,
const base::Point3 upper
[inline]
 

Definition at line 51 of file BoundingBox.

References base::Point3.

Referenced by BoundingBox().

Real physics::BoundingBox::size  )  const [inline]
 

Definition at line 72 of file BoundingBox.

References base::Vector3::x, base::Vector3::y, and base::Vector3::z.

void physics::BoundingBox::transform const base::Transform t  ) 
 

take axis-aligned box represented by *this and transform it by t, yielding a non-axis-aliigned box. *this becomes a new axis-aligned box that encloses the non-aligned box.

Referenced by physics::CollidableBody::getBoundingBox().

base::Point3 physics::BoundingBox::upper  )  const [inline]
 

Definition at line 48 of file BoundingBox.

References base::Point3.


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:40:03 2004 for OpenSim by doxygen 1.3.6