|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLMISC::CAABBox Class ReferenceAn Axis Aligned Bouding Box.
More...
#include <aabbox.h>
Inheritance diagram for NLMISC::CAABBox
[legend]Collaboration diagram for NLMISC::CAABBox:
[legend]List of all members.
Detailed Description
An Axis Aligned Bouding Box.
Note: Center/HalfSize set to private, to have same manipulation for CAABBox and CAABBoxExt. -
Author(s):
-
Lionel Berenguier , Nevrax France
-
Date:
-
2000
Definition at line 52 of file aabbox.h.
Constructor & Destructor Documentation
NLMISC::CAABBox::CAABBox (
|
) [inline]
|
|
|
Empty bbox Constructor. (for AABBoxExt::getRadius() correctness).
Definition at line 63 of file aabbox.h. |
Member Function Documentation
bool NLMISC::CAABBox::clipBack (
|
const CPlane & p ) const
|
|
bool NLMISC::CAABBox::clipFront (
|
const CPlane & p ) const
|
|
void NLMISC::CAABBox::extend (
|
const CVector & v )
|
|
|
extend the bbox so it contains v.
Warning!! By default, a bbox is the vector 0,0,0. So set the first vertex with setCenter() or else the bbox will be the extension of v and (0,0,0)...
Definition at line 141 of file aabbox.cpp.
Referenced by NL3D::makeBBox(). |
CVector NLMISC::CAABBox::getCenter (
|
) const [inline]
|
|
CVector NLMISC::CAABBox::getHalfSize (
|
) const [inline]
|
|
CVector NLMISC::CAABBox::getMax (
|
) const [inline]
|
|
CVector NLMISC::CAABBox::getMin (
|
) const [inline]
|
|
float NLMISC::CAABBox::getRadius (
|
) const [inline]
|
|
CVector NLMISC::CAABBox::getSize (
|
) const [inline]
|
|
bool NLMISC::CAABBox::include (
|
const CVector & a ) const
|
|
bool NLMISC::CAABBox::intersect (
|
const CAABBox & box ) const
|
|
|
Does the bbox intersect the bbox box.
Definition at line 89 of file aabbox.cpp. |
void NLMISC::CAABBox::makePyramid (
|
CPlane planes[6] ) const
|
|
|
Build the equivalent polytope of planes.
Definition at line 120 of file aabbox.cpp. |
void NLMISC::CAABBox::setCenter (
|
const CVector & center ) [inline]
|
|
void NLMISC::CAABBox::setHalfSize (
|
const CVector & hs ) [inline]
|
|
void NLMISC::CAABBox::setMinMax (
|
const CVector & bmin,
|
|
const CVector & bmax ) [inline]
|
|
void NLMISC::CAABBox::setSize (
|
const CVector & s ) [inline]
|
|
Member Data Documentation
CVector NLMISC::CAABBox::Center [protected]
|
|
|
The center of the bbox.
Definition at line 56 of file aabbox.h. |
CVector NLMISC::CAABBox::HalfSize [protected]
|
|
|
The size/2 of the bbox.
Definition at line 58 of file aabbox.h. |
The documentation for this class was generated from the following files:
|
|