mat4:identity

Resets the matrix to the identity, effectively setting its translation to zero, its scale to 1, and clearing any rotation.

m = mat4:identity()

Arguments

None

Returns

NameTypeDescription
mmat4The original matrix.

See also