Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Box Class Reference

#include <box.h>

Inheritance diagram for Box:

BoxTreeNode BoxedTriangle BoxTreeInnerNode List of all members.

Public Methods

 Box ()
 Box (float x, float y, float z, float sx, float sy, float sz)
 Box (const Vector3D& pos, const Vector3D& size)
 Box (const Box& b)
virtual ~Box ()
const Vector3DgetPosition () const
const Vector3DgetSize () const
const Vector3DgetCenter () const
float getVolume () const
bool intersect (const Vector3D& O, const Vector3D& D)
bool intersect (const Vector3D& O, const Vector3D& D, float segmax)
bool intersect (const Vector3D& O, float radius)
bool intersect (const Vector3D& p) const
bool intersect (const Box& b)
bool intersect (const Box& b, RotationState& rs)

Public Attributes

Vector3D m_Pos
Vector3D m_Size
Vector3D m_Center

Detailed Description

AABB class, with support for testing against OBBs.


Constructor & Destructor Documentation

Box::Box ( ) [inline]
 

Default constructor

Box::Box ( float x,
float y,
float z,
float sx,
float sy,
float sz ) [inline]
 

Construct from scalar corner position and size

Box::Box ( const Vector3D & pos,
const Vector3D & size ) [inline]
 

Construct from corner position and size

Box::Box ( const Box & b ) [inline]
 

Copy constructor

Box::~Box ( ) [inline, virtual]
 


Member Function Documentation

const Vector3D & Box::getCenter ( ) const [inline]
 

Returns the center position of the box

const Vector3D & Box::getPosition ( ) const [inline]
 

Returns the box's position

const Vector3D & Box::getSize ( ) const [inline]
 

Returns the sizes of the box's edges

float Box::getVolume ( ) const [inline]
 

Returns the volume of the box

bool Box::intersect ( const Box & b,
RotationState & rs )
 

Oriented box intersection.

bool Box::intersect ( const Box & b )
 

Aligned box intersection

__CD__BEGIN bool Box::intersect ( const Vector3D & p ) const
 

Point in box

bool Box::intersect ( const Vector3D & O,
float radius )
 

Sphere intersection

bool Box::intersect ( const Vector3D & O,
const Vector3D & D,
float segmax )
 

Line segment intersection

bool Box::intersect ( const Vector3D & O,
const Vector3D & D )
 

Ray intersection


Member Data Documentation

Vector3D Box::m_Center
 

Position of box center. m_Pos+0.5f*m_Size;

Vector3D Box::m_Pos
 

Position of box corner

Vector3D Box::m_Size
 

Size of box box edges


The documentation for this class was generated from the following files:
Generated at Sat Nov 18 00:15:14 2000 for coldet by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000