OBBs
An oriented bounding box (OBB) is a bounding volume that can be rotated with respect to a fixed world coordinate system. Unlike an axis-aligned bounding box (AABB), an OBB is defined by its center, three mutually orthogonal local axes, and three half-extents along those axes. In 3D, this yields a box rotated arbitrarily in space; in 2D, two axes and two extents define a rotated rectangle. OBBs are commonly used in computer graphics, collision detection, physics engines, and visibility tests because they can tightly fit objects with arbitrary orientation compared to AABBs.
With a 3D OBB, the center is c, the axes are unit vectors u0, u1, u2 forming
Collision tests between OBBs commonly use the separating axis theorem (SAT). For two 3D OBBs there are
OBBs can be constructed by fitting to a set of points (e.g., via principal component analysis or