Transform

A Transform 3x3 matrix to make transformations more efficient

Members

Functions

determinant
float determinant(int x, int y)

Find a determinant of a 2x2 submatrix

determinant
float determinant()

Find the determinant of the underlying matrix

ptr
float* ptr()

A pointer to the internal buffer to pass the matrix to C

submatrix
float[4] submatrix(int x, int y)

Find a 2x2 submatrix

Properties

inverse
Transform inverse [@property getter]

Find the inverse of the transform

transpose
Transform transpose [@property getter]

Flip the underlying matrix over the xy axis

Static functions

identity
Transform identity()

Create an identity matrix

rotate
Transform rotate(in float angle)

Create a rotation matrix

scale
Transform scale(in Vector vec)

Create a scale matrix

translate
Transform translate(in Vector vec)

Create a translation matrix

Meta