An oriented box: axis-aligned by default, or rotated about the vertical
axis by heading.
The natural shape for building interiors, garages and parking bays, where an axis-aligned bounding box would either miss corners or spill into the street. Give it the same heading as the building and the fit is exact.
size is the full extent along each axis, not the half-extent — a
size of (4, 8, 3) is 4 m wide, 8 m deep and 3 m tall.
Constructor
Variables
Methods
cacheRotation():Void
Recomputes the cached rotation. Call this after assigning heading
directly; the constructor and rotateTo do it for you.