33 1.0f, 0.0f, 0.0f, 0.0f,
34 0.0f, 1.0f, 0.0f, 0.0f,
35 0.0f, 0.0f, 1.0f, 0.0f,
36 0.0f, 0.0f, 0.0f, 1.0f
42 memcpy(
elements, array, 16 *
sizeof(
float));
79 result.
elements[10] = -2.0f / (zFar - zNear);
80 result.
elements[14] = -(zFar + zNear) / (zFar - zNear);
const float identityArray[16]
float elements[16]
A 16 element floating point array used to represent a 4x4 matrix.
Matrix & operator=(const Matrix &another)
Overloading assingment operater to do deep copy of the Matrix elements.
static const float identityArray[]
A 4x4 identity Matrix;.
static Matrix matrixOrthographic(float left, float right, float bottom, float top, float zNear, float zFar)
Create and return an orthographic projection matrix.
Functions for manipulating matrices.
static Matrix identityMatrix
The identity matrix.
float * getAsArray(void)
Get the matrix elements as a column major order array.
Matrix(void)
Default constructor.