Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
|
#include <BoundingBox.h>
Public Member Functions | |
BoundingBox () | |
BoundingBox (const BoundingBox &aabb) | |
void | Calculate (const Vector3D *v, const int numPoints) |
void | Expand (const float amt) |
void | Translate (const Vector3D &v) |
bool | CollisionCheck (const BoundingBox &aabb) |
bool | CollisionCheck (const Vector3D &v) |
BoundingBox & | operator= (const BoundingBox &b) |
Public Attributes | |
Vector3D | mMin |
Vector3D | mMax |
Vector3D | mCenter |
Axis-aligned bounding box.
Ult::BoundingBox::BoundingBox | ( | ) |
BoundingBox default constructor.
Ult::BoundingBox::BoundingBox | ( | const BoundingBox & | aabb | ) |
BoundingBox copy constructor.
void Ult::BoundingBox::Calculate | ( | const Vector3D * | v, |
const int | numPoints ) |
Initialize this bounding box to encapuslate all of the given input points.
bool Ult::BoundingBox::CollisionCheck | ( | const BoundingBox & | aabb | ) |
Returns true if this box overlaps with the input bo.x
bool Ult::BoundingBox::CollisionCheck | ( | const Vector3D & | v | ) |
Returns true if the input point is within this box.
void Ult::BoundingBox::Expand | ( | const float | amt | ) |
Increase the size of the bounding box by amt.
|
inline |
Set this box's values equal to another box's
void Ult::BoundingBox::Translate | ( | const Vector3D & | v | ) |
Change the position of the min/max points by v.
Vector3D Ult::BoundingBox::mCenter |
The center point of this box.
Vector3D Ult::BoundingBox::mMax |
The maximum corner point of this box.
Vector3D Ult::BoundingBox::mMin |
The minimum corner point of this box.