Skip to main content

ZMatrix4

actualpackageZMatrix4
20 items

All

20
constructorZMatrix4
constructor()
constructor(values: Array)
constructor(values: FloatArray)
Initializes a ZMatrix4 object with the provided array of float values.Constructs a 4x4 matrix from a given array of float values.
object Op
Provides a collection of operations for manipulating 4x4 matrices.
open override val byteArray: ByteArray
open override val byteSize: Int
open override val count: Int = 1
Number of individual instances this object represents
open override val dataType: ZDataType
The data type stored
open override val floatArray: FloatArray
valsize
open override val size: Int
Number of elements contained within the values array with the specific type defined in dataType
funget
operator fun get(i: Int): Float
operator fun get(i: Int, j: Int): Float
Retrieves the value at the specified index. 0-15 index element.Retrieves the value at the specified 2D matrix coordinates.
fun identity()
Sets the current matrix to be the identity matrix.
fun invert(): Boolean
Inverts the current ZMatrix4 instance in place.
fun inverted(): ZMatrix4
Returns a new ZMatrix4 that is the inverse of the current matrix.
operator fun minus(m: ZMatrix4): ZMatrix4
Performs the Matrix subtraction operation.
funplus
operator fun plus(m: ZMatrix4): ZMatrix4
Performs the Matrix addition operation.
fun scale(s: ZVector3)
fun scale(x: Float, y: Float, z: Float)
Scales the current matrix by the specified vector.
funset
operator fun set(i: Int, v: Float)
operator fun set(i: Int, j: Int, v: Float)
Sets the value at the specified index. 0-15 index element.Sets the value at the specified 2D matrix coordinates.
operator fun times(m: ZMatrix4): ZMatrix4
Performs the Matrix multiplication operation.
open override fun toString(): String
fun translate(translation: ZVector3)
fun translate(x: Float, y: Float, z: Float)
Translates the current matrix by the given vector.Translates the current matrix by the specified x, y, and z values.
fun transpose()
Transposes the current ZMatrix4 instance in place.