Skip to content

Engine → Core

plane.h

An infinite plane in the form dot(normal, point) + distance = 0. The positive half-space is the side the normal points to. Normalise before trusting signed distances as metric distances; frustum extraction and the factories below already do.

Structs

File Description
plane An infinite plane in the form dot(normal, point) + distance = 0. The positive half-space is the side the normal points to. Normalise before trusting signed distances as metric distances; frustum extraction and the factories below already do.
std::formatter<conjure::math::plane>

Functions

Public

nearly_equal

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

True when normal and distance are each within epsilon.