AABB, or axis-aligned bounding box, is defined by a minimum point and a maximum point. It is used for broad-phase collision detection. It represents a rectangular outline of the shape so we can quickly insert shapes into a SpatialHash.
The minimum point of the AABB.
The maximum point of the AABB.
The width of the AABB.
The height of the AABB.
Can be used to generate an AABB from an arbitrary collection of vertices. It is generally better to define a more efficient AABB generation method based on the properties of a particular shape, but this can be used for an arbitrary collection of vertices, like a polygon.
Efficiently transforms an AABB. Used internally by SpatialHash to quickly transform a shape’s AABB.