Axis-aligned bounding box.

interface AABB {
    center: Vector3;
    extent: Vector3;
}

Properties

Properties

center: Vector3

The centerpoint of the box.

extent: Vector3

Absolute distance from the centerpoint to the bounds of the box. Equivalent to half of the box's length, height and width. Will always be treated as positive.