Math module

identity

procedure · 1 overloadSource

Sets the matrix m points to the identity, for any of the matrix types. Matrix4x3 and Matrix4 get zero translation.

ExampleOpen in playground ↗
m: Matrix3;
m._12 = 4;
identity(*m);
assert(m == Matrix3_Identity);
identity :: (m: *$T/interface AnyMatrix)

Sets the matrix to the identity, in place.

Parameters

m: *$T/interface AnyMatrix
the matrix to change.

See also