C++ Java Unity
C++ Reference
Box3D Class Reference

Detailed Description

A 3D axis-aligned bounding box (AABB).

Public Member Functions

 Box3D ()
 Constructor. More...
 
 Box3D (const Box3D &other)
 Copy constructor. More...
 
 Box3D (const Vec3F &nMinPos, const Vec3F &nMaxPos)
 Define an axis-aligned box by specifying its minimum and maximum corners. More...
 
virtual const Vec3FgetMinimumPosition () const
 Get the position of the (numerical) minimum corner of the box. More...
 
virtual const Vec3FgetMaximumPosition () const
 Get the position of the (numerical) maximum corner of the box. More...
 
virtual ~Box3D ()
 

Protected Attributes

Vec3F minimumPosition
 
Vec3F maximumPosition
 

Constructor & Destructor Documentation

Box3D ( )

Constructor.

Box3D ( const Box3D other)

Copy constructor.

Box3D ( const Vec3F nMinPos,
const Vec3F nMaxPos 
)

Define an axis-aligned box by specifying its minimum and maximum corners.

The minimum and maximum points refer to numerical minimum and maximum (ie min.x < max.x, min.y < max.y, and min.z < max.z).

Parameters
nMinPosThe minimum corner point.
nMaxPosThe maximum corner point.
virtual ~Box3D ( )
virtual

Member Function Documentation

virtual const Vec3F& getMinimumPosition ( ) const
virtual

Get the position of the (numerical) minimum corner of the box.

virtual const Vec3F& getMaximumPosition ( ) const
virtual

Get the position of the (numerical) maximum corner of the box.

Member Data Documentation

Vec3F minimumPosition
protected
Vec3F maximumPosition
protected