Matrix

Struct representing a 4x4 matrix

Members

Functions

invert
Matrix invert()
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, float z)
translate
Matrix translate(float x, float y)
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