#include <RmMath.h>
Public Member Functions | |
| RmBoundBox () | |
| Constructor. | |
| RmBoundBox (RmVector3D minPoint, RmVector3D maxPoint) | |
| Constructor. | |
| void | SetEmpty (bool bEmpty) |
| Set empty. | |
| bool | IsEmpty () const |
| Is empty. | |
| RmVector3D & | GetMin () |
| Minimum point. | |
| const RmVector3D & | GetMin () const |
| Minimum point. | |
| RmVector3D & | GetMax () |
| Maximum point. | |
| const RmVector3D & | GetMax () 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. | |
|
|
Constructor. Constructor |
|
||||||||||||
|
Constructor. Constructor
|
|
|
Center of boundbox. Return center of bound box
|
|
|
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
|
|
|
Maximum point. Accessor for maximum point
|
|
|
Maximum point. Accessor for maximum point
|
|
|
Minimum point. Accessor for minimum point
|
|
|
Minimum point. Accessor for minimum point
|
|
|
Range f boundbox. Return range ( max - min ) of bound box
|
|
|
Is empty. Returns if Boundbox is empty
|
|
|
Transform boundbox. Transformed BoundBox by matrix
|
|
|
Set empty. Set empty flag
|
|
|
Do union operation. If any corner of given boundbox is outside of current boundbox, expand bound box to include the source boundbox
|
|
|
Do union operation. If given point is outside of current boundbox, expand bound box to include given point
|
1.3.6