template<typename MatType = SimFloat>
TMatrix4 struct

4×4 column-major matrix parameterized on a scalar type.

Template parameters
MatType Scalar element type — defaults to SimFloat.

Storage: m[col * 4 + row]. Default-constructed as identity.

Public static functions

static auto Identity() -> TMatrix4
static auto Multiply(const TMatrix4& a, const TMatrix4& b) -> TMatrix4
Column-major multiply: result = a * b.

Constructors, destructors, conversion operators

TMatrix4()

Public functions

auto operator[](int i) -> MatType&
auto operator*(const TMatrix4& o) const -> TMatrix4
template<typename Dst>
auto CastTo() const -> TMatrix4<Dst>
Explicit per-element type conversion.
auto ToFloat() const -> TMatrix4<float>
Convert to float elements.
auto ToSim() const -> TMatrix4<SimFloat>
Convert to SimFloat elements.

Public variables

MatType m
Column-major storage: m[col * 4 + row].