Matrix

Struct representing a 4x4 matrix

Members

Functions

invert
Matrix invert()
opAdd
Matrix opAdd(Matrix matrix)
Undocumented in source. Be warned that the author may not have intended to support it.
opDiv
Matrix opDiv(float a)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
float[4] opIndex(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
opMul
Matrix opMul(Matrix matrix)
Undocumented in source. Be warned that the author may not have intended to support it.
opMul
Vector4 opMul(Vector4 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opMul
Vector2 opMul(Vector2 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opMul
Vector3 opMul(Vector3 vector)
Undocumented in source. Be warned that the author may not have intended to support it.
opMul
Matrix opMul(float a)
Undocumented in source. Be warned that the author may not have intended to support it.
opSub
Matrix opSub(Matrix matrix)
Undocumented in source. Be warned that the author may not have intended to support it.
rotate
Matrix rotate(Quaternion rotation)
Undocumented in source. Be warned that the author may not have intended to support it.
rotateX
Matrix rotateX(float degrees)
rotateY
Matrix rotateY(float degrees)
rotateZ
Matrix rotateZ(float degrees)
scale
Matrix scale(Vector2 vector)
scale
Matrix scale(Vector3 vector)
scale
Matrix scale(float x, float y, float z)
translate
Matrix translate(Vector2 vector)
translate
Matrix translate(Vector3 vector)
translate
Matrix translate(float x, float y)
translate
Matrix translate(float x, float y, float z)
transpose
Matrix transpose()

Properties

identity
Matrix identity [@property getter]

Static functions

ortho
Matrix ortho(float left, float right, float top, float bottom, float near, float far)
perspective
Matrix perspective(float width, float height, float near, float far, float fov)

Variables

array
float[4][4] array;

arrayrowcolumn

Meta