Mat3

open class Mat3

A 3x3 column major matrix.

Author

Colton Daily

Constructors

Link copied to clipboard
fun Mat3()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
operator fun get(i: Int): Float
operator fun get(row: Int, col: Int): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun invert(result: Mat3): Boolean
Link copied to clipboard
fun mul(other: Mat3): Mat3

Post-multiplies this matrix with the given matrix, storing the result in this matrix.

fun mul(other: Mat3, result: Mat3): Mat3

Post-multiplies this matrix with the given matrix, storing the result in the specified matrix.

Link copied to clipboard
fun mulLeft(other: Mat3): Mat3

Pre-multiplies this matrix with the given matrix, storing the result in this matrix.

fun mulLeft(other: Mat3, result: Mat3): Mat3

Pre-multiplies this matrix with the given matrix, storing the result in the specified matrix.

Link copied to clipboard
fun rotate(axis: Vec3f, degrees: Float): Mat3
fun rotate(axis: Vec3f, degrees: Float, result: Mat3): Mat3
fun rotate(eulerX: Float, eulerY: Float, eulerZ: Float): Mat3
fun rotate(eulerX: Float, eulerY: Float, eulerZ: Float, result: Mat3): Mat3
fun rotate(ax: Float, ay: Float, az: Float, degrees: Float): Mat3
fun rotate(ax: Float, ay: Float, az: Float, degrees: Float, result: Mat3): Mat3
Link copied to clipboard
fun scale(scale: Vec2f): Mat3
fun scale(sx: Float, sy: Float): Mat3
fun scale(sx: Float, sy: Float, result: Mat3): Mat3
Link copied to clipboard
fun set(other: Mat3): Mat3
fun set(floats: List<Float>)
operator fun set(i: Int, value: Float)
operator fun set(row: Int, col: Int, value: Float)
Link copied to clipboard
fun setColVec(col: Int, vec: Vec3f)
Link copied to clipboard
fun setFromEulerAngles(eulerX: Float, eulerY: Float, eulerZ: Float): Mat3
Link copied to clipboard
Link copied to clipboard
fun setToRotation(angle: Angle): Mat3
fun setToRotation(ax: Float, ay: Float, az: Float, degrees: Float): Mat3
Link copied to clipboard
fun setToScale(scale: Vec2f): Mat3
fun setToScale(sx: Float, sy: Float): Mat3
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toList(): List<Float>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun translate(offset: Vec2f): Mat3
fun translate(x: Float, y: Float): Mat3

Post-multiplies this matrix by a translation matrix.

fun translate(x: Float, y: Float, result: Mat3): Mat3

Post-multiplies this matrix by a translation matrix and stores the result in the specified matrix

Link copied to clipboard
fun transpose(result: Mat3): Mat3

Properties

Link copied to clipboard
Link copied to clipboard
var m00: Float
Link copied to clipboard
var m01: Float
Link copied to clipboard
var m02: Float
Link copied to clipboard
var m10: Float
Link copied to clipboard
var m11: Float
Link copied to clipboard
var m12: Float
Link copied to clipboard
var m20: Float
Link copied to clipboard
var m21: Float
Link copied to clipboard
var m22: Float
Link copied to clipboard

Note: You must clone or copy the values of this Vec2f due to the values of this referenced Vec2f will change.

Link copied to clipboard
Link copied to clipboard

Note: You must clone or copy the values of this Vec2f due to the values of this referenced Vec2f will change.