halfextent
Half extent (often written as half-extents) is a term used in geometry, computer graphics, and physics to describe half the size of a bounding box along each axis. It represents the distance from the box’s center to its faces. For a three-dimensional axis-aligned bounding box with width w, height h, and depth d, the half extents are (w/2, h/2, d/2).
In many systems a box is stored or processed as a center point plus its half extents.
Common uses include collision detection in physics engines, ray-box intersections, frustum culling, and bounding volume hierarchies.
Notes and variations: when boxes are axis-aligned in world space, half extents are straightforward. If a box
See also: bounding box, extents, axis-aligned bounding box, oriented bounding box.