Transform

A Transform 3x3 matrix to make transformations more efficient

Constructors

this
this(float[9] data)
Undocumented in source.

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

opAssign
Transform opAssign(float[9] array)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Transform opBinary(Transform other)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Vector opBinary(Vector other)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Transform opBinary(float scalar)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
float opIndex(size_t i, size_t j)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
float opIndexAssign(float val, size_t i, size_t j)
Undocumented in source. Be warned that the author may not have intended to support it.
print
void print()
Undocumented in source. Be warned that the author may not have intended to support it.
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(float angle)

Create a rotation matrix

scale
Transform scale(Vector vec)

Create a scale matrix

translate
Transform translate(Vector vec)

Create a translation matrix

Meta