Constructors

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

Link copied to clipboard
object Op

Provides a collection of operations for manipulating 4x4 matrices.

Properties

Link copied to clipboard
open override val count: Int

Number of individual instances this object represents

Link copied to clipboard
open override val dataType: ZDataType

The data type stored

Link copied to clipboard
open override val floatArray: FloatArray
Link copied to clipboard
open override val size: Int

Number of elements contained within the values array with the specific type defined in dataType

Functions

Link copied to clipboard
operator fun get(i: Int): Float

Retrieves the value at the specified index. 0-15 index element.

operator fun get(i: Int, j: Int): Float

Retrieves the value at the specified 2D matrix coordinates.

Link copied to clipboard
fun identity()

Sets the current matrix to be the identity matrix.

Link copied to clipboard

Inverts the current ZMatrix4 instance in place.

Link copied to clipboard

Returns a new ZMatrix4 that is the inverse of the current matrix.

Link copied to clipboard
operator fun minus(m: ZMatrix4): ZMatrix4

Performs the Matrix subtraction operation.

Link copied to clipboard
operator fun plus(m: ZMatrix4): ZMatrix4

Performs the Matrix addition operation.

Link copied to clipboard
fun scale(s: ZVector3)
fun scale(x: Float, y: Float, z: Float)

Scales the current matrix by the specified vector.

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.

Link copied to clipboard
operator fun times(m: ZMatrix4): ZMatrix4

Performs the Matrix multiplication operation.

Link copied to clipboard
open override fun toString(): String
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.

Link copied to clipboard
fun transpose()

Transposes the current ZMatrix4 instance in place.