|
| AABB () |
| Create an empty bounding box. More...
|
|
| AABB (const vector< 3, T > &pMin, const vector< 3, T > &pMax) |
| Create a new bounding box from two corner points.
|
|
| AABB (const vector< 4, T > &sphere) |
| Create a new bounding box from a bounding sphere.
|
|
bool | isIn (const vector< 3, T > &point) const |
|
bool | isIn (const vector< 4, T > &sphere) const |
|
bool | isInFront (const vector< 4, T > &plane) const |
|
const vector< 3, T > & | getMin () const |
|
const vector< 3, T > & | getMax () const |
|
void | merge (const AABB< T > &aabb) |
| Create the union of this and the given bounding box.
|
|
void | merge (const vector< 3, T > &point) |
| Create the union of this and the given point.
|
|
void | reset () |
| Clear this bounding box.
|
|
bool | isEmpty () const |
|
bool | operator== (const AABB< T > &other) const |
|
bool | operator!= (const AABB< T > &other) const |
|
vector< 3, T > | getCenter () const |
|
vector< 3, T > | getSize () const |
|
void | computeNearFar (const vector< 4, T > &plane, vector< 3, T > &nearPoint, vector< 3, T > &farPoint) const |
| Compute the nearest and furthest point of this box relative to the given plane.
|
|
template<typename T>
class vmml::AABB< T >
An axis-aligned bounding box.
An empty bounding box has undefined, implementation-specific values. Read operations (getMin(), getMax(), getSize(), isIn(), etc.) have undefined semantics on an empty bounding box. set() and merge() operations will define the bounding box correctly.
Definition at line 47 of file aabb.hpp.