math/obb library

Classes

OBB
Class representing an oriented bounding box (OBB). Similar to an AABB, it's a rectangular block but with an arbitrary orientation. When using {@link OBB#fromPoints}, the implementation tries to provide a tight-fitting oriented bounding box. In many cases, the result is better than an AABB or bounding sphere but worse than a convex hull. However, it's more efficient to work with OBBs compared to convex hulls. In general, OBB's are a good compromise between performance and tightness.