Skip to content

ludus::foundation::math::Matrix4

Ludus Wiki · API overview · Browse API

Struct

Column-major 4x4 matrix; A*B applies B then A. 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::Matrix4

Fields

Columns

Vector4 ludus::foundation::math::Matrix4::Columns[4][4] = {}

Related types: Vector4

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

Static methods

Zero

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

Related types: Matrix4

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

Identity

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

Related types: Matrix4

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

Methods

At

constexpr float32 ludus::foundation::math::Matrix4::At(usize row, usize column) const noexcept
See Matrix3::At: resumable-assertion-safe (index clamped after the assert so a resumed assertion cannot cause an out-of-range access; MA05).

Related types: float32 · usize

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

Members

operator==

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

Related types: Matrix4

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