Skip to content

ludus::foundation::math::Matrix3

Ludus Wiki · API overview · Browse API

Struct

Column-major 3x3 matrix acting on column vectors; default is zero, not identity.

Declared in modules/foundation/math/include/ludus/foundation/math/matrix.hpp

#include <ludus/foundation/math/matrix.hpp>
struct ludus::foundation::math::Matrix3

Fields

Columns

Vector3 ludus::foundation::math::Matrix3::Columns[3][3] = {}

Related types: Vector3

Declared in modules/foundation/math/include/ludus/foundation/math/matrix.hpp

Static methods

Zero

static constexpr Matrix3 ludus::foundation::math::Matrix3::Zero() noexcept

Related types: Matrix3

Declared in modules/foundation/math/include/ludus/foundation/math/matrix.hpp

Identity

static constexpr Matrix3 ludus::foundation::math::Matrix3::Identity() noexcept

Related types: Matrix3

Declared in modules/foundation/math/include/ludus/foundation/math/matrix.hpp

Methods

At

constexpr float32 ludus::foundation::math::Matrix3::At(usize row, usize column) const noexcept
At(row, column): element in [0,3).
An out-of-range index is a caller precondition violation, reported by LUDUS_ASSERT in development. Because assertions are resumable (ADR 0006), the index is also clamped into range so a resumed assertion yields a defined in-bounds read rather than an out-of-range access (MA05). Direct Columns[] indexing keeps ordinary C++ preconditions; this SDK indexed helper is memory-safe regardless.

Related types: float32 · usize

Declared in modules/foundation/math/include/ludus/foundation/math/matrix.hpp

Members

operator==

constexpr bool operator==(const Matrix3 &, const Matrix3 &)=default

Related types: Matrix3

Declared in modules/foundation/math/include/ludus/foundation/math/matrix.hpp