math.matrix4
4x4 matrix struct.
- struct Matrix4(T);
4x4 column major OpenGL style matrix. Default initialized to indentity matrix.
- Matrix4!(T) translationMatrix(T)(const Vector2!(T) translate);
Create a translation matrix.
Parameters:Returns:translate Translation coordinates. Resulting translation matrix.- pure Matrix4!(T) orthoMatrix(T)(const T left, const T right, const T bottom, const T top, const T near, const T far);
Create an orthographic projection matrix.
Parameters:Returns:left Left clipping plane. right Right clipping plane. bottom Bottom clipping plane. top Top clipping plane. near Near clipping plane. far Far clipping plane. Resulting projection matrix.- alias Matrix4f;
Matrix4 of floats.