Skip to content

Engine → Core

aabb.h

Axis-aligned bounding box. The default box is inverted (min = +FLT_MAX, max = -FLT_MAX) so that expanding it with the first point makes it valid; is_valid() is false until then. Containment and intersection tests are inclusive: touching counts.

Structs

File Description
aabb Axis-aligned bounding box. The default box is inverted (min = +FLT_MAX, max = -FLT_MAX) so that expanding it with the first point makes it valid; is_valid() is false until then. Containment and intersection tests are inclusive: touching counts.
std::formatter<conjure::math::aabb>

Functions

Public

nearly_equal

[[nodiscard]] inline bool nearly_equal(
    const aabb &a,
    const aabb &b,
    f32 epsilon = EPSILON) noexcept;

True when both corners are within epsilon.