Math module

make_matrix4

procedure · 1 overloadSource

Extends a 3x3 matrix to a Matrix4: the 3x3 in the corner, zero translation, and 1 at _44.

ExampleOpen in playground ↗
m := make_matrix4(Matrix3_Identity);
assert(m == Matrix4_Identity);
make_matrix4 :: (m: $T/interface AnyMatrix3) -> Matrix4

m as a 4x4 matrix. The extra row and column are those of the identity.

Parameters

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

Returns

See also