#include <vhdAxisAlignedBox.h>
Collaboration diagram for vhdAxisAlignedBox:

Public Member Functions | |
| vhdAxisAlignedBox (float mx, float my, float mz, float Mx, float My, float Mz) | |
| vhdVector3 | getMinimum (void) const |
| vhdVector3 | getMaximum (void) const |
| void | setExtents (float mx, float my, float mz, float Mx, float My, float Mz) |
Protected Member Functions | |
| void | _updateCorners (void) |
Protected Attributes | |
| vhdVector3 | _vecMinimum |
| vhdVector3 | _vecMaximum |
| bool | _bNull |
| vhdVector3 | _vecCorners [8] |
Friends | |
| std::ostream & | operator<< (std::ostream &o, vhdAxisAlignedBox aab) |
This class represents a simple box which is aligned with the axes. Internally it only stores 2 points as the extremeties of the box, one which is the minima of all 3 axes, and the other which is the maxima of all 3 axes. This class is typically used for an axis-aligned bounding box (AABB) for collision and visibility determination.
Definition at line 45 of file vhdAxisAlignedBox.h.
|
|
Internal method for updating corner points. Definition at line 98 of file vhdAxisAlignedBox.h. References vhdVector3::x, vhdVector3::y, and vhdVector3::z. Referenced by setExtents(). |
|
|
Gets the maximum corner of the box.
|
|
|
Gets the minimum corner of the box.
|
|
||||||||||||||||||||||||||||
|
Sets both minimum and maximum extents at once. mx the minimum x corner of the box. my the minimum y corner of the box. mz the minimum z corner of the box. Mx the maximum x corner of the box. My the maximum y corner of the box. Mz the maximum z corner of the box. Definition at line 159 of file vhdAxisAlignedBox.h. References _updateCorners(), vhdVector3::x, vhdVector3::y, and vhdVector3::z. |
1.3.8