Op
15 items
valIdentity
Provides a new instance of the identity 4x4 matrix.
funadd
Adds two 4x4 matrices and stores the result in the provided result matrix.
fun fromQuaternion(q: ZQuaternion): ZMatrix4fun fromQuaternion(result: ZMatrix4, q: ZQuaternion)
Converts a quaternion into a 4x4 matrix representing the same rotation.
funidentity
Sets the given matrix to be the identity matrix.
funinvert
Computes the invert matrix from the given one
funmult
Multiplies two 4x4 matrices, storing the result in the result matrix.
funrotate
fun rotate(result: ZMatrix4, q: ZQuaternion)
Rotates the given ZMatrix4 result by the specified ZQuaternion.
fun setTranslation(result: ZMatrix4, translation: ZVector3)fun setTranslation(result: ZMatrix4, x: Float, y: Float, z: Float)
Sets the translation component of a matrix using the specified translation vector.Sets the translation components of the provided 4x4 matrix to the specified x, y, and z values.
funsubtract
Subtracts two 4x4 matrices and stores the result in the provided result matrix.
funtranslate
funtranspose
Transposes the given 4x4 matrix m and stores the result in result.
funtransposeIp
fun transposeIp(result: ZMatrix4)