fun identity(result: ZMatrix4)(source)

Sets the given matrix to be the identity matrix.

An identity matrix is a square matrix with ones on the main diagonal and zeros elsewhere.

Parameters

result

The matrix to be set as the identity matrix.