Math module

make_matrix3

procedure · 1 overloadSource

The upper-left 3x3 of any matrix with those fields, as a Matrix3.

ExampleOpen in playground ↗
m := make_translation_matrix4(xyz(1, 2, 3));
assert(make_matrix3(m) == Matrix3_Identity);
make_matrix3 :: (m: $T/interface AnyMatrix3) -> Matrix3

The upper-left 3x3 part of m.

Parameters

m: $T/interface AnyMatrix3
the matrix to copy from.

Returns

See also