Matrix

Struct representing a 4x4 matrix

Members

Functions

invert
Matrix invert()
opAdd
Matrix opAdd(Matrix matrix)
opDiv
Matrix opDiv(float a)
opIndex
float[4] opIndex(int i)
opMul
Matrix opMul(Matrix matrix)
opMul
Vector4 opMul(Vector4 vector)
opMul
Vector2 opMul(Vector2 vector)
opMul
Vector3 opMul(Vector3 vector)
opMul
Matrix opMul(float a)
opSub
Matrix opSub(Matrix matrix)
rotate
Matrix rotate(Quaternion rotation)
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