Skip to content

novaphy.AABB

Axis-aligned bounding box in world coordinates.

Constructors

Constructor Description
AABB() Empty / zero AABB.
AABB(min, max) From min and max corners.
AABB.from_sphere(center, radius) Bounding box of a sphere.

Properties

Property Description
min Minimum corner.
max Maximum corner.

Methods

Method Description
center() Box center.
half_extents() Half extents along x / y / z.
is_valid() True when min <= max component-wise.
surface_area() Surface area in m^2.
overlaps(other) Test overlap against another AABB.

See Also