openrndr / org.openrndr.math / Matrix33

Matrix33

data class Matrix33 : LinearType<Matrix33> (source)

A 3x3 matrix with double precision

Constructors

<init>

A 3x3 matrix with double precision

Matrix33(c0r0: Double = 0.0, c1r0: Double = 0.0, c2r0: Double = 0.0, c0r1: Double = 0.0, c1r1: Double = 0.0, c2r1: Double = 0.0, c0r2: Double = 0.0, c1r2: Double = 0.0, c2r2: Double = 0.0)

Properties

c0r0

val c0r0: Double

c0r1

val c0r1: Double

c0r2

val c0r2: Double

c1r0

val c1r0: Double

c1r1

val c1r1: Double

c1r2

val c1r2: Double

c2r0

val c2r0: Double

c2r1

val c2r1: Double

c2r2

val c2r2: Double

determinant

val determinant: Double

inversed

val inversed: Matrix33

matrix44

val matrix44: Matrix44

trace

val trace: Double

transposed

val transposed: Matrix33

Functions

div

operator fun div(s: Double): Matrix33

get

Returns a column vector

operator fun get(index: Int): Vector3

minus

operator fun minus(o: Matrix33): Matrix33

plus

operator fun plus(o: Matrix33): Matrix33

times

operator fun times(v: Vector3): Vector3
operator fun times(s: Double): Matrix33
operator fun times(mat: Matrix33): Matrix33

toString

fun toString(): String

Companion Object Properties

IDENTITY

val IDENTITY: Matrix33

ZERO

val ZERO: Matrix33

Companion Object Functions

fromColumnVectors

fun fromColumnVectors(c0: Vector3, c1: Vector3, c2: Vector3): Matrix33