#include <utilities/BBox.h>
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] |
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.
1.4.3