Matrix4

data class Matrix4(val m0: Float, val m1: Float, val m2: Float, val m3: Float, val m4: Float, val m5: Float, val m6: Float, val m7: Float, val m8: Float, val m9: Float, val m10: Float, val m11: Float, val m12: Float, val m13: Float, val m14: Float, val m15: Float)

A 4x4 matrix.

Constructors

Link copied to clipboard
constructor(m0: Float, m1: Float, m2: Float, m3: Float, m4: Float, m5: Float, m6: Float, m7: Float, m8: Float, m9: Float, m10: Float, m11: Float, m12: Float, m13: Float, m14: Float, m15: Float)
constructor(raw: ERROR CLASS: Symbol not found for Matrix)

Creates a Matrix4 from a raw raylib Matrix.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val m0: Float
Link copied to clipboard
val m1: Float
Link copied to clipboard
val m10: Float
Link copied to clipboard
val m11: Float
Link copied to clipboard
val m12: Float
Link copied to clipboard
val m13: Float
Link copied to clipboard
val m14: Float
Link copied to clipboard
val m15: Float
Link copied to clipboard
val m2: Float
Link copied to clipboard
val m3: Float
Link copied to clipboard
val m4: Float
Link copied to clipboard
val m5: Float
Link copied to clipboard
val m6: Float
Link copied to clipboard
val m7: Float
Link copied to clipboard
val m8: Float
Link copied to clipboard
val m9: Float
Link copied to clipboard

The pitch rotation component of the matrix in radians.

Link copied to clipboard
val roll: Float

The roll rotation component of the matrix in radians.

Link copied to clipboard
val rotation: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>

The rotation component of the matrix as Euler angles (pitch, yaw, roll) in radians. Raylib uses the YXZ order for rotations.

Link copied to clipboard

The scale component of the matrix along the X axis.

Link copied to clipboard

The scale component of the matrix along the Y axis.

Link copied to clipboard

The scale component of the matrix along the Z axis.

Link copied to clipboard
val x: Float

The X translation component of the matrix.

Link copied to clipboard
val y: Float

The Y translation component of the matrix.

Link copied to clipboard
val yaw: Float

The yaw rotation component of the matrix in radians.

Link copied to clipboard
val z: Float

The Z translation component of the matrix.

Functions

Link copied to clipboard

Inverts this matrix.

Link copied to clipboard
fun multiply(vector3: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>): ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>

Multiplies this matrix by a 3D vector.

Multiplies this matrix by a 4D vector.

Multiplies this matrix by another matrix.

Link copied to clipboard
fun rotate(pitch: Float, yaw: Float, roll: Float): Matrix4

Rotates this matrix given pitch, yaw, and roll.

Link copied to clipboard
fun scale(scale: Float): Matrix4

Scales this matrix.

fun scale(sx: Float, sy: Float, sz: Float): Matrix4

Scales this matrix given various scale values.

Link copied to clipboard
operator fun times(vector3: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>): ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>
operator fun times(vector4: Quadruple<Float, Float, Float, Float>): Quadruple<Float, Float, Float, Float>
operator fun times(b: Matrix4): Matrix4
Link copied to clipboard

Converts the matrix to a float array.

Link copied to clipboard
fun translate(x: Float, y: Float, z: Float): Matrix4

Translates this matrix given coordinates.

Link copied to clipboard

Transposes this matrix.