Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

RmBoundBox Class Reference

BoundBox. More...

#include <RmMath.h>

List of all members.

Public Member Functions

 RmBoundBox ()
 Constructor.

 RmBoundBox (RmVector3D minPoint, RmVector3D maxPoint)
 Constructor.

void SetEmpty (bool bEmpty)
 Set empty.

bool IsEmpty () const
 Is empty.

RmVector3DGetMin ()
 Minimum point.

const RmVector3DGetMin () const
 Minimum point.

RmVector3DGetMax ()
 Maximum point.

const RmVector3DGetMax () const
 Maximum point.

RmVector3D GetCenter ()
 Center of boundbox.

RmVector3D GetRange ()
 Range f boundbox.

void Union (const RmVector3D &point)
 Do union operation.

void Union (const RmBoundBox &box)
 Do union operation.

void GetCornerVertices (RmVector3D *pCornerVerts)
 Get corner vertices.

RmBoundBox operator * (const RmMatrix4x4 &mat)
 Transform boundbox.


Detailed Description

BoundBox.


Constructor & Destructor Documentation

RmBoundBox::RmBoundBox  ) 
 

Constructor.

Constructor

RmBoundBox::RmBoundBox RmVector3D  minPoint,
RmVector3D  maxPoint
 

Constructor.

Constructor

Parameters:
minPoint Minimum point of bound box
See also:
RmVector3D
Parameters:
maxPoint Maximum point of bound box
See also:
RmVector3D


Member Function Documentation

RmVector3D RmBoundBox::GetCenter  ) 
 

Center of boundbox.

Return center of bound box

Returns:
Center point of boundbox
See also:
RmVector3D

void RmBoundBox::GetCornerVertices RmVector3D pCornerVerts  ) 
 

Get corner vertices.

Get corner vertices ( 8 of them ) and put them to pCornerVerts It is assumed that pCornerVerts is large enough to hold 8 vectors

Parameters:
pCornerVertices 8 vector table to receive corner of boundbox
See also:
RmVector3D
Returns:
None

const RmVector3D& RmBoundBox::GetMax  )  const [inline]
 

Maximum point.

Accessor for maximum point

Returns:
Maximum point
See also:
RmVector3D

RmVector3D& RmBoundBox::GetMax  )  [inline]
 

Maximum point.

Accessor for maximum point

Returns:
Maximum point
See also:
RmVector3D

const RmVector3D& RmBoundBox::GetMin  )  const [inline]
 

Minimum point.

Accessor for minimum point

Returns:
Minimum point
See also:
RmVector3D

RmVector3D& RmBoundBox::GetMin  )  [inline]
 

Minimum point.

Accessor for minimum point

Returns:
Minimum point
See also:
RmVector3D

RmVector3D RmBoundBox::GetRange  ) 
 

Range f boundbox.

Return range ( max - min ) of bound box

Returns:
Range of boundbox
See also:
RmVector3D

bool RmBoundBox::IsEmpty  )  const [inline]
 

Is empty.

Returns if Boundbox is empty

Returns:
true if boundbox is empty

RmBoundBox RmBoundBox::operator * const RmMatrix4x4 mat  ) 
 

Transform boundbox.

Transformed BoundBox by matrix

Parameters:
mat Matrix to transform boundbox with
Returns:
New boundbox

void RmBoundBox::SetEmpty bool  bEmpty  )  [inline]
 

Set empty.

Set empty flag

Parameters:
bEmpty Flag for empty or not
Returns:
None

void RmBoundBox::Union const RmBoundBox box  ) 
 

Do union operation.

If any corner of given boundbox is outside of current boundbox, expand bound box to include the source boundbox

Parameters:
box Boundbox to do Union
Returns:
None

void RmBoundBox::Union const RmVector3D point  ) 
 

Do union operation.

If given point is outside of current boundbox, expand bound box to include given point

Parameters:
point Point to do Union
Returns:
None


The documentation for this class was generated from the following file:
Generated on Fri Feb 25 16:08:54 2005 for RenderMonkey SDK by doxygen 1.3.6