Functions for manipulating matrices.
More...
#include <Matrix.h>
Functions for manipulating matrices.
Definition at line 29 of file Matrix.h.
Skybox::Matrix::Matrix |
( |
void |
| ) |
|
Default constructor.
Definition at line 49 of file Matrix.cpp.
Skybox::Matrix::Matrix |
( |
const float * |
array | ) |
|
Constructor from element array.
- Parameters
-
[in] | array | A column major order array to use as the matrix elements. |
Definition at line 40 of file Matrix.cpp.
Get the matrix elements as a column major order array.
- Returns
- A pointer to the matrix elements.
Definition at line 52 of file Matrix.cpp.
Create and return an orthographic projection matrix.
Assumes Z is positive going away from the user's view (left-hand coordinate system).
- Parameters
-
[in] | left | The coordinate for the left vertical clipping plane. |
[in] | right | The coordinate for the right vertical clipping plane. |
[in] | bottom | The coordinate for the bottom horizontal clipping plane. |
[in] | top | The coordinate for the top horizontal clipping plane. |
[in] | zNear | The distance from the camera to the near clipping plane. |
[in] | zFar | the distance from the camera to the far clipping plane. |
- Returns
- An orthographic projection matrix.
Definition at line 69 of file Matrix.cpp.
Matrix & Skybox::Matrix::operator= |
( |
const Matrix & |
another | ) |
|
Overloading assingment operater to do deep copy of the Matrix elements.
Definition at line 58 of file Matrix.cpp.
float Skybox::Matrix::elements[16] |
|
private |
A 16 element floating point array used to represent a 4x4 matrix.
- Note
- Items are stored in column major order as OpenGL ES expects them.
Definition at line 36 of file Matrix.h.
const float Skybox::Matrix::identityArray |
|
staticprivate |
Initial value:=
{
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f
}
A 4x4 identity Matrix;.
Definition at line 41 of file Matrix.h.
The identity matrix.
A matrix with 1's on the main diagonal and 0's everywhere else.
Definition at line 73 of file Matrix.h.
The documentation for this class was generated from the following files:
- /mnt/d/working/gitlab/opengles-sdk-android/samples/advanced_samples/Skybox/jni/Matrix.h
- /mnt/d/working/gitlab/opengles-sdk-android/samples/advanced_samples/Skybox/jni/Matrix.cpp