Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

BBox Class Reference

An axis-aligned bounding box. More...

#include <utilities/BBox.h>

List of all members.

Public Member Functions

 BBox (const Vector3 &a, const Vector3 &b)
Vector3 min () const
Vector3 max () const
bool rayIntersect (const Ray &r, double tmin, double tmax) const
bool rayIntersectT (const Ray &r, double &tmin, double &tmax) const
float halfSurfaceArea ()
bool overlapsBox (const BBox &box) const
bool containsPoint (const Vector3 &point) const
Vector3 corner (int i, int j, int k) const

Public Attributes

Vector3 pp [2]


Detailed Description

An axis-aligned bounding box.

The rayIntersect and rayIntersectT functions are implemented using a modified version of the Williams BBox test. Currently the preprocessor define ORIGINAL_WILLIAMS (in math/Ray.h) will cause the code to use the original Williams BBox test instead of the modified version.


The documentation for this class was generated from the following files:
Generated on Wed Jul 20 16:15:19 2005 for galileo by  doxygen 1.4.3