mul

fun mul(other: Mat4): Mat4

Post-multiplies this matrix with the given matrix, storing the result in this matrix.

For example:

A.mul(B) results in A := AB

Return

this matrix

Parameters

other

the other matrix to multiply by


fun mul(other: Mat4, result: Mat4): Mat4

Post-multiplies this matrix with the given matrix, storing the result in the specified matrix.

For example:

A.mul(B) results in A := AB

Return

the result matrix

Parameters

other

the other matrix to multiply by

result

the matrix to store the result