AABB Class Reference
3-Dimensional Axis-Aligned Bounding Box More...
#include <AABB.h>
Inheritance diagram for AABB:

Public Member Functions | |
Constructors | |
| AABB () | |
| AABB (const Vector3 &min_, const Vector3 &max_) | |
Main usage interface | |
| bool | intersects (const Ray &ray, real_t &tMin, real_t &tMax) const |
| void | add (const Vector3 &v) |
| unions this AABB with the given vector | |
| void | add (const Point3 &p) |
| unions this AABB with the given Point | |
| void | add (const AABB &aabb) |
| unions this AABB with the given AABB | |
| bool | intersects (const AABB &aabb) const |
| bool | contains (const Point3 &p) const |
| void | preview () const |
Accessors | |
| Vector3 | getDiagonal () const |
| Point3 | getCenter () const |
| unsigned | getMaxExtent () const |
| unsigned | getMinExtent () const |
| real_t | getSurfaceArea () const |
| void | getMinMaxSurfaceArea (const unsigned axis, const real_t pos, real_t &leftArea, real_t &rightArea) const |
| AABB | getTransformed (const Matrix4x4 &trans) const |
| bool | isValid () const |
| bool | isPoint () const |
Public Attributes | |
| Vector3 | min |
| Vector3 | max |
Detailed Description
3-Dimensional Axis-Aligned Bounding Box
- Date:
- Fall 2008
Definition at line 18 of file AABB.h.
Constructor & Destructor Documentation
Member Function Documentation
Ray-box intersection using IEEE numerical properties to ensure that the test is both robust and efficient, as described in:
Amy Williams, Steve Barrus, R. Keith Morley, and Peter Shirley "An Efficient and Robust Ray-Box Intersection Algorithm" Journal of graphics tools, 10(1):49-54, 2005
Modified slightly by for the purposes of this program
| void AABB::add | ( | const Vector3 & | v | ) | [inline] |
| void AABB::add | ( | const Point3 & | p | ) | [inline] |
| void AABB::add | ( | const AABB & | aabb | ) | [inline] |
| bool AABB::intersects | ( | const AABB & | aabb | ) | const [inline] |
| bool AABB::contains | ( | const Point3 & | p | ) | const [inline] |
| Vector3 AABB::getDiagonal | ( | ) | const [inline] |
| unsigned AABB::getMaxExtent | ( | ) | const [inline] |
| unsigned AABB::getMinExtent | ( | ) | const [inline] |
| real_t AABB::getSurfaceArea | ( | ) | const [inline] |
| bool AABB::isValid | ( | ) | const [inline] |
| bool AABB::isPoint | ( | ) | const [inline] |
Member Data Documentation
The documentation for this class was generated from the following files:
Generated on 28 Feb 2009 for Milton by
1.5.6