Companion

object Companion

Functions

fromColumnVectors
Link copied to clipboard
fun fromColumnVectors(c0: Vector4, c1: Vector4, c2: Vector4, c3: Vector4): Matrix44

Creates a 4x4 matrix from column vectors.

fromDoubleArray
Link copied to clipboard
fun fromDoubleArray(a: DoubleArray): Matrix44

Constructs a matrix from DoubleArray with values in row-major order.

Properties

IDENTITY
Link copied to clipboard
val IDENTITY: Matrix44

4x4 identity matrix

ZERO
Link copied to clipboard
val ZERO: Matrix44

4x4 zero matrix

Extensions

rotate
Link copied to clipboard
fun Matrix44.Companion.rotate(axis: Vector3, angle: Double): Matrix44

Create a rotation matrix around the given axes

rotateX
Link copied to clipboard
fun Matrix44.Companion.rotateX(angle: Double): Matrix44

Create a rotation matrix around the X axes

rotateY
Link copied to clipboard
fun Matrix44.Companion.rotateY(angle: Double): Matrix44

Create a rotation matrix around the Y axes

rotateZ
Link copied to clipboard
fun Matrix44.Companion.rotateZ(angle: Double): Matrix44

Create a rotation matrix around the Z axes

scale
Link copied to clipboard
fun Matrix44.Companion.scale(scaleFactor: Vector3): Matrix44

Create a scaling matrix with the given vector

fun Matrix44.Companion.scale(x: Double, y: Double, z: Double): Matrix44

Create a scaling matrix with the given components

translate
Link copied to clipboard
fun Matrix44.Companion.translate(translation: Vector3): Matrix44

Create a translate matrix with the given vector

fun Matrix44.Companion.translate(x: Double, y: Double, z: Double): Matrix44

Create a scaling matrix with the given components