A 3D oriented bounding box.
Public Member Functions | |
Obb3D () | |
Constructor. More... | |
Obb3D (const Obb3D &other) | |
Copy constructor. More... | |
Obb3D (const Vec3F &nCenter, const Vec3F &nHalfExtents, float nRotationZ) | |
Construct from center, half extents and rotation. More... | |
virtual const Vec3F & | getCenter () const |
Get the center of the bounding box. More... | |
virtual const Vec3F & | getHalfExtents () const |
Get the half width, depth, and height of the bounding box. More... | |
virtual float | getRotationZ () const |
Get the rotation of the bounding box. More... | |
virtual | ~Obb3D () |
Protected Attributes | |
Vec3F | center |
Vec3F | halfExtents |
float | rotation |
Obb3D | ( | ) |
Constructor.
Construct from center, half extents and rotation.
nCenter | The center of the box. |
nHalfExtents | The half width, half height and half-depth of the (unrotated) box |
nRotationZ | Counter-clock-wise rotation angle around the Z axis, in radians |
|
virtual |
|
virtual |
Get the center of the bounding box.
|
virtual |
Get the half width, depth, and height of the bounding box.
|
virtual |
Get the rotation of the bounding box.
|
protected |
|
protected |
|
protected |