ZernikalosmathZMatrix4ZMatrix4 Members Constructors ZMatrix4 Link copied to clipboard constructor()constructor(values: Array<Float>)Initializes a ZMatrix4 object with the provided array of float values.constructor(values: FloatArray)Constructs a 4x4 matrix from a given array of float values. Types Op Link copied to clipboard object OpProvides a collection of operations for manipulating 4x4 matrices. Properties count Link copied to clipboard open override val count: IntNumber of individual instances this object represents dataType Link copied to clipboard open override val dataType: ZDataTypeThe data type stored floatArray Link copied to clipboard open override val floatArray: FloatArray size Link copied to clipboard open override val size: IntNumber of elements contained within the values array with the specific type defined in dataType Functions get Link copied to clipboard operator fun get(i: Int): FloatRetrieves the value at the specified index. 0-15 index element.operator fun get(i: Int, j: Int): FloatRetrieves the value at the specified 2D matrix coordinates. identity Link copied to clipboard fun identity()Sets the current matrix to be the identity matrix. invert Link copied to clipboard fun invert(): BooleanInverts the current ZMatrix4 instance in place. inverted Link copied to clipboard fun inverted(): ZMatrix4Returns a new ZMatrix4 that is the inverse of the current matrix. minus Link copied to clipboard operator fun minus(m: ZMatrix4): ZMatrix4Performs the Matrix subtraction operation. plus Link copied to clipboard operator fun plus(m: ZMatrix4): ZMatrix4Performs the Matrix addition operation. scale Link copied to clipboard fun scale(s: ZVector3)fun scale(x: Float, y: Float, z: Float)Scales the current matrix by the specified vector. set Link copied to clipboard operator fun set(i: Int, v: Float)Sets the value at the specified index. 0-15 index element.operator fun set(i: Int, j: Int, v: Float)Sets the value at the specified 2D matrix coordinates. times Link copied to clipboard operator fun times(m: ZMatrix4): ZMatrix4Performs the Matrix multiplication operation. toString Link copied to clipboard open override fun toString(): String translate Link copied to clipboard fun translate(translation: ZVector3)Translates the current matrix by the given vector.fun translate(x: Float, y: Float, z: Float)Translates the current matrix by the specified x, y, and z values. transpose Link copied to clipboard fun transpose()Transposes the current ZMatrix4 instance in place.