Matrix

open class Matrix

4x4 Matrix representing translation, scale, and rotation. Column major, right handed [0, 4, 8, 12] [1, 5, 9, 13] [2, 6, 10, 14] [3, 7, 11, 15]

Constructors

Link copied to clipboard
constructor()
constructor(data: Array<Float>)

Properties

Link copied to clipboard
open var data: Array<Float>
Link copied to clipboard

Functions

Link copied to clipboard
open fun decomposeRotation(decomposedScale: Vector3, destMatrix: Matrix)
open fun decomposeRotation(decomposedScale: Vector3, destRotation: Quaternion)
Link copied to clipboard
open fun decomposeScale(destScale: Vector3)
Link copied to clipboard
open fun decomposeTranslation(destTranslation: Vector3)
Link copied to clipboard
open fun equals(lhs: Matrix, rhs: Matrix): Boolean
Compares Matrix values
Link copied to clipboard
open fun extractQuaternion(destQuaternion: Quaternion)
Link copied to clipboard
open fun invert(matrix: Matrix, dest: Matrix): Boolean
Link copied to clipboard
open fun makeRotation(rotation: Quaternion)
Link copied to clipboard
open fun makeScale(scale: Float)
open fun makeScale(scale: Vector3)
Link copied to clipboard
open fun makeTranslation(translation: Vector3)
Link copied to clipboard
open fun makeTrs(translation: Vector3, rotation: Quaternion, scale: Vector3)
Link copied to clipboard
open fun multiply(lhs: Matrix, rhs: Matrix, dest: Matrix)
Link copied to clipboard
open fun set(data: Array<Float>)
open fun set(m: Matrix)
Link copied to clipboard
open fun setTranslation(translation: Vector3)
Link copied to clipboard
Transforms a direction by ignoring any translation.
Link copied to clipboard
open fun transformPoint(vector: Vector3): Vector3