Matrix4

Useful for representing complete transforms: rotations, scales, translations, projections, etc.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val v00: Float
Link copied to clipboard
val v01: Float
Link copied to clipboard
val v02: Float
Link copied to clipboard
val v03: Float
Link copied to clipboard
val v10: Float
Link copied to clipboard
val v11: Float
Link copied to clipboard
val v12: Float
Link copied to clipboard
val v13: Float
Link copied to clipboard
val v20: Float
Link copied to clipboard
val v21: Float
Link copied to clipboard
val v22: Float
Link copied to clipboard
val v23: Float
Link copied to clipboard
val v30: Float
Link copied to clipboard
val v31: Float
Link copied to clipboard
val v32: Float
Link copied to clipboard
val v33: Float

Functions

Link copied to clipboard
fun c(column: Int): Vector4F
Link copied to clipboard
fun copyToColumns(out: FloatArray = FloatArray(16), offset: Int = 0): FloatArray
Link copied to clipboard
fun copyToRows(out: FloatArray = FloatArray(16), offset: Int = 0): FloatArray
Link copied to clipboard
Link copied to clipboard
fun decomposeRotation(rowNormalise: Boolean = true): Quaternion
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(row: Int, column: Int): Float
Link copied to clipboard
fun getAtIndex(index: Int): Float
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open override fun isAlmostEquals(other: Matrix4, epsilon: Float): Boolean
Link copied to clipboard
fun r(row: Int): Vector4F
Link copied to clipboard
fun rotated(x: Angle, y: Angle, z: Angle): Matrix4
fun rotated(angle: Angle, x: Double, y: Double, z: Double): Matrix4
fun rotated(angle: Angle, x: Float, y: Float, z: Float): Matrix4
fun rotated(angle: Angle, x: Int, y: Int, z: Int): Matrix4
Link copied to clipboard
fun scaled(x: Double, y: Double, z: Double, w: Double = 1.0): Matrix4
fun scaled(x: Float, y: Float, z: Float, w: Float = 1.0f): Matrix4
fun scaled(x: Int, y: Int, z: Int, w: Int = 1): Matrix4
Link copied to clipboard
operator fun times(that: Matrix4): Matrix4
operator fun times(scale: Float): Matrix4
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun toTRS(): TRS4
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun translated(x: Double, y: Double, z: Double, w: Double = 1.0): Matrix4
fun translated(x: Float, y: Float, z: Float, w: Float = 1.0f): Matrix4
fun translated(x: Int, y: Int, z: Int, w: Int = 1): Matrix4
Link copied to clipboard