tida.matrix

Matrix management module.

Members

Aliases

mat4
alias mat4 = float[4][4]
Undocumented in source.

Functions

eulerRotate
float[4][4] eulerRotate(float[4][4] mat, float roll, float pitch, float yaw)

Euler method rotation matrix.

eulerRotateMat
float[4][4] eulerRotateMat(float roll, float pitch, float yaw)

Euler method rotation matrix.

mulmat
float[4][4] mulmat(float[4][4] a, float[4][4] b)

Multiply two matrices.

ortho
float[4][4] ortho(float left, float right, float bottom, float top, float zNear, float zFar)

Ortho matrix generate

rotateMat
float[4][4] rotateMat(float angle, float x, float y, float z)

Gives the rotation matrix.

rotateMat
float[4][4] rotateMat(float[4][4] mat, float angle, float x, float y, float z)

Gives the rotation matrix.

scale
float[4][4] scale(float[4][4] mat, float x, float y, float z)

Increases the matrix by a specified factor along the specified axes.

scaleMat
float[4][4] scaleMat(float x, float y, float z)

Increases the matrix by a specified factor along the specified axes.

transform
Vector!float transform(Vector!float v, mat4 m)

Multiple matrix and vector.

translate
float[4][4] translate(float[4][4] mat, float x, float y, float z)

Moves the matrix provided in the arguments along the given axes with the given values.

translation
float[4][4] translation(float x, float y, float z)

Moves the matrix along the specified axes by the specified amount.

Properties

identity
float[4][4] identity [@property getter]

A square matrix, the elements of the main diagonal of which are equal to one of the field, and the rest are equal to zero.

Meta

Authors

License