ZMatrix4
20 items
- All (20)
- Constructors (1)
- Functions (12)
- Properties (6)
All
20constructorZMatrix4
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.
valbyteArray
open override val byteArray: ByteArray
valbyteSize
open override val byteSize: Int
valfloatArray
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.
funinverted
fun inverted(): ZMatrix4
Returns a new ZMatrix4 that is the inverse of the current matrix.
funscale
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.
funtoString
open override fun toString(): String
funtranslate
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.
Constructors
1constructorZMatrix4
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.
Functions
12funget
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.
funinverted
fun inverted(): ZMatrix4
Returns a new ZMatrix4 that is the inverse of the current matrix.
funscale
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.
funtoString
open override fun toString(): String
funtranslate
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.
Properties
6valbyteArray
open override val byteArray: ByteArray
valbyteSize
open override val byteSize: Int
valfloatArray
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