Op
15 items
- All (15)
- Functions (14)
- Properties (1)
All
15funadd
fun add(result: ZMatrix4, m1: ZMatrix4, m2: ZMatrix4)
Adds two 4x4 matrices and stores the result in the provided result matrix.
fun fromQuaternion(q: ZQuaternion): ZMatrix4
fun fromQuaternion(result: ZMatrix4, q: ZQuaternion)
Converts a quaternion into a 4x4 matrix representing the same rotation.
funinvert
fun invert(result: ZMatrix4, m: ZMatrix4): Boolean
Computes the invert matrix from the given one
funlookAt
fun lookAt(result: ZMatrix4, eye: ZVector3, center: ZVector3, up: ZVector3)
Sets up a view transformation matrix to represent a camera looking at a specified target.
funmult
fun mult(result: ZMatrix4, lm: ZMatrix4, rm: ZMatrix4)
Multiplies two 4x4 matrices, storing the result in the result matrix.
funperspective
fun perspective(result: ZMatrix4, fov: Float, aspect: Float, near: Float, far: Float)
Computes the perspective projection matrix
funrotate
fun rotate(result: ZMatrix4, q: ZQuaternion)
Rotates the given ZMatrix4 result by the specified ZQuaternion.
funscale
fun scale(result: ZMatrix4, s: ZVector3)
fun scale(result: ZMatrix4, m: ZMatrix4, s: ZVector3)
fun scale(result: ZMatrix4, m: ZMatrix4, x: Float, y: Float, z: Float)
Scales a given 4x4 matrix by specified x, y, and z scaling factors.
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
fun subtract(result: ZMatrix4, m1: ZMatrix4, m2: ZMatrix4)
Subtracts two 4x4 matrices and stores the result in the provided result matrix.
funtranslate
fun translate(result: ZMatrix4, translation: ZVector3)
fun translate(result: ZMatrix4, m: ZMatrix4, translation: ZVector3)
fun translate(result: ZMatrix4, x: Float, y: Float, z: Float)
funtranspose
fun transpose(result: ZMatrix4, m: ZMatrix4)
Transposes the given 4x4 matrix m and stores the result in result.
funtransposeIp
fun transposeIp(result: ZMatrix4)
Functions
14funadd
fun add(result: ZMatrix4, m1: ZMatrix4, m2: ZMatrix4)
Adds two 4x4 matrices and stores the result in the provided result matrix.
fun fromQuaternion(q: ZQuaternion): ZMatrix4
fun fromQuaternion(result: ZMatrix4, q: ZQuaternion)
Converts a quaternion into a 4x4 matrix representing the same rotation.
funinvert
fun invert(result: ZMatrix4, m: ZMatrix4): Boolean
Computes the invert matrix from the given one
funlookAt
fun lookAt(result: ZMatrix4, eye: ZVector3, center: ZVector3, up: ZVector3)
Sets up a view transformation matrix to represent a camera looking at a specified target.
funmult
fun mult(result: ZMatrix4, lm: ZMatrix4, rm: ZMatrix4)
Multiplies two 4x4 matrices, storing the result in the result matrix.
funperspective
fun perspective(result: ZMatrix4, fov: Float, aspect: Float, near: Float, far: Float)
Computes the perspective projection matrix
funrotate
fun rotate(result: ZMatrix4, q: ZQuaternion)
Rotates the given ZMatrix4 result by the specified ZQuaternion.
funscale
fun scale(result: ZMatrix4, s: ZVector3)
fun scale(result: ZMatrix4, m: ZMatrix4, s: ZVector3)
fun scale(result: ZMatrix4, m: ZMatrix4, x: Float, y: Float, z: Float)
Scales a given 4x4 matrix by specified x, y, and z scaling factors.
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
fun subtract(result: ZMatrix4, m1: ZMatrix4, m2: ZMatrix4)
Subtracts two 4x4 matrices and stores the result in the provided result matrix.
funtranslate
fun translate(result: ZMatrix4, translation: ZVector3)
fun translate(result: ZMatrix4, m: ZMatrix4, translation: ZVector3)
fun translate(result: ZMatrix4, x: Float, y: Float, z: Float)
funtranspose
fun transpose(result: ZMatrix4, m: ZMatrix4)
Transposes the given 4x4 matrix m and stores the result in result.
funtransposeIp
fun transposeIp(result: ZMatrix4)