Skip to content

Engine → Core

transform.h

Position, rotation and scale (TRS). Right-handed, Y up, -Z forward. Trivially copyable and exactly 10 floats (position xyz, rotation xyzw, scale xyz) so the C# side mirrors it. A TRS cannot represent shear, so composing or inverting transforms with non-uniform scale under rotation is an approximation; the documented behaviours below say exactly which identities hold.

Structs

File Description
std::formatter<conjure::math::transform>
transform Position, rotation and scale (TRS). Right-handed, Y up, -Z forward. Trivially copyable and exactly 10 floats (position xyz, rotation xyzw, scale xyz) so the C# side mirrors it. A TRS cannot represent shear, so composing or inverting transforms with non-uniform scale under rotation is an approximation; the documented behaviours below say exactly which identities hold.

Functions

Public

nearly_equal

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

True when position, rotation (component-wise) and scale are each within epsilon.