3D axis-aligned bounding box (uses single-precision) More...
#include <ai_bbox.h>
Public Member Functions | |
| AI_DEVICE | AtBBox (const AtVector &mn, const AtVector &mx) |
| AI_DEVICE | AtBBox (const AtVector &p0, const AtVector &p1, const AtVector &p2) |
| Compute the bbox of a triangle. | |
| AI_DEVICE void | addSlack (float slack) |
| Expand a bounding box with some safety slack volume. | |
| void | init () |
| Initialize a bounding box to be empty. | |
| void | expand (const AtVector &v) |
| Expand a bounding box with a point. | |
| AI_DEVICE bool | inside (const AtVector &p) const |
| Check to see if the specified point is inside the bbox. | |
| float | volume () const |
| Compute the volume of a bbox. | |
| bool | isEmpty () const |
| Returns whether or not the specified box is empty. | |
| float | halfArea () const |
| Compute half the surface area of a bbox. | |
| float | area () const |
| Compute the surface area of a bbox. | |
| AI_DEVICE AtVector | center () const |
| Compute the center of a bbox. | |
Data Fields | |
| AtVector | min |
| AtVector | max |
3D axis-aligned bounding box (uses single-precision)