3#ifndef TRITON_OREINTED_BOUNDING_BOX_H
4#define TRITON_OREINTED_BOUNDING_BOX_H
34 double halfDistances[3];
Implements a 3x3 matrix and its operations.
Common typedefs and defines used within Triton.
A 3D Vector class and its operations.
A simple 3x3 matrix class and its operations.
Definition: Matrix3.h:30
This base class for all Triton objects intercepts the new and delete operators, routing them through ...
Definition: MemAlloc.h:71
An oriented bounding box defined by a center point and three axes.
Definition: OrientedBoundingBox.h:18
void Set(const Vector3 ¢er, const Vector3 &xExtent, const Vector3 &yExtent, const Vector3 &zExtent)
Define the OBB by a center point and vectors from center to extents in X, Y, and Z.
OrientedBoundingBox()
Constructor.
void RecomputeBasis()
Recomputes the basis used for PointInBox.
bool PointInBox(const Vector3 &point, double slop) const
Test if a point is enclosed by the box.
A 3D double-precision Vector class and its operations.
Definition: Vector3.h:36