Skip to content

ludus::foundation::math::Matrix4d

Ludus Wiki · API overview · Browse API

Struct

Column-major 4x4 double-precision matrix used for offline and tooling transforms.
Storage matches Matrix4 (column c, row r at Elements[4 * c + r]); default is zero, not identity. Equality is element-wise IEEE comparison, so -0.0 equals 0.0 and NaN is never equal.

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

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

Fields

Elements

float64 ludus::foundation::math::Matrix4d::Elements[16][16] = {}
Sixteen elements in column-major order.

Related types: float64

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

Static methods

Identity

static constexpr Matrix4d ludus::foundation::math::Matrix4d::Identity() noexcept
The identity matrix.

Related types: Matrix4d

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

Members

operator==

constexpr bool operator==(const Matrix4d &, const Matrix4d &)=default
Element-wise IEEE equality.

Related types: Matrix4d

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