![]() |
Mali OpenGL ES SDK v2.4.4
Mali Developer Center
Use of the code snippets present within these pages are subject to these EULA terms
|
#include <MMatrix.h>
Public Member Functions | |
| MMatrix () | |
| ~MMatrix () | |
| const Type * | getData () const |
| The method returns the matrix data in an OpenGL layout. | |
| void | setIdentity () |
| void | setRotation (Type aAngle, Type aX, Type aY, Type aZ) |
| void | setScale (Type aX, Type aY, Type aZ) |
| void | setScale (const MVector3< Type > &aScale) |
| void | applyTranslation (Type aX, Type aY, Type aZ) |
| The method applies a transformation on top of the already existing operations in the current matrix. | |
| void | applyTranslation (const MVector3< Type > &aPosition) |
| The method applies a transformation on top of the already existing operations in the current matrix. | |
| void | multiply (const MMatrix &aLeft, const MMatrix &aRight, MMatrix &aOut) const |
| The method multiplies two matrices and returns a result matrix as in a parameter. | |
| void | multiplyLeft (const MMatrix< Type > &aOther) |
| aOther * this | |
| void | multiplyRight (const MMatrix< Type > &aOther) |
| this * aOther | |
| void | setPerspective (Type aFieldOfViewAngle, Type aAspect, Type aNear, Type aFar) |
| The method makes the current matrix as a projection matrix with given parameters. | |
| void | invert () |
| The method inverts the current matrix. | |
| void | transpose () |
| The method transposes the current matrix - rows become columns and vice versa. | |
| MMatrix () | |
| ~MMatrix () | |
| const Type * | getData () const |
| void | setIdentity () |
| void | setRotation (Type aAngle, Type aX, Type aY, Type aZ) |
| void | setScale (Type aX, Type aY, Type aZ) |
| void | setScale (const MVector3< Type > &aScale) |
| void | applyTranslation (Type aX, Type aY, Type aZ) |
| void | applyTranslation (const MVector3< Type > &aPosition) |
| void | multiply (const MMatrix &aLeft, const MMatrix &aRight, MMatrix &aOut) const |
| void | multiplyLeft (const MMatrix< Type > &aOther) |
| aOther * this | |
| void | multiplyRight (const MMatrix< Type > &aOther) |
| this * aOther | |
| void | setPerspective (Type aFieldOfViewAngle, Type aAspect, Type aNear, Type aFar) |
| void | invert () |
| void | transpose () |
| MMatrix () | |
| ~MMatrix () | |
| const Type * | getData () const |
| void | setIdentity () |
| void | setRotation (Type aAngle, Type aX, Type aY, Type aZ) |
| void | setScale (Type aX, Type aY, Type aZ) |
| void | setScale (const MVector3< Type > &aScale) |
| void | applyTranslation (Type aX, Type aY, Type aZ) |
| void | applyTranslation (const MVector3< Type > &aPosition) |
| void | multiply (const MMatrix &aLeft, const MMatrix &aRight, MMatrix &aOut) const |
| void | multiplyLeft (const MMatrix< Type > &aOther) |
| aOther * this | |
| void | multiplyRight (const MMatrix< Type > &aOther) |
| this * aOther | |
| void | setPerspective (Type aFieldOfViewAngle, Type aAspect, Type aNear, Type aFar) |
| void | invert () |
| void | transpose () |
Private Attributes | |
| Type | theData [16] |
The template class is a helper for matrix operations.
| void MMatrix< Type >::applyTranslation | ( | Type | aX, |
| Type | aY, | ||
| Type | aZ | ||
| ) |
| void MMatrix< Type >::applyTranslation | ( | Type | aX, |
| Type | aY, | ||
| Type | aZ | ||
| ) |
|
inline |
|
inline |
| void MMatrix< Type >::applyTranslation | ( | Type | aX, |
| Type | aY, | ||
| Type | aZ | ||
| ) |
The method applies a transformation on top of the already existing operations in the current matrix.
|
inline |
The method applies a transformation on top of the already existing operations in the current matrix.
|
inline |
|
inline |
|
inline |
The method returns the matrix data in an OpenGL layout.
| void MMatrix< Type >::invert | ( | ) |
| void MMatrix< Type >::invert | ( | ) |
| void MMatrix< Type >::invert | ( | ) |
The method inverts the current matrix.
| void MMatrix< Type >::multiply | ( | const MMatrix< Type > & | aLeft, |
| const MMatrix< Type > & | aRight, | ||
| MMatrix< Type > & | aOut | ||
| ) | const |
| void MMatrix< Type >::multiply | ( | const MMatrix< Type > & | aLeft, |
| const MMatrix< Type > & | aRight, | ||
| MMatrix< Type > & | aOut | ||
| ) | const |
| void MMatrix< Type >::multiply | ( | const MMatrix< Type > & | aLeft, |
| const MMatrix< Type > & | aRight, | ||
| MMatrix< Type > & | aOut | ||
| ) | const |
The method multiplies two matrices and returns a result matrix as in a parameter.
aOther * this
aOther * this
aOther * this
|
inline |
this * aOther
|
inline |
this * aOther
|
inline |
this * aOther
| void MMatrix< Type >::setIdentity | ( | ) |
| void MMatrix< Type >::setIdentity | ( | ) |
| void MMatrix< Type >::setIdentity | ( | ) |
| void MMatrix< Type >::setPerspective | ( | Type | aFieldOfViewAngle, |
| Type | aAspect, | ||
| Type | aNear, | ||
| Type | aFar | ||
| ) |
| void MMatrix< Type >::setPerspective | ( | Type | aFieldOfViewAngle, |
| Type | aAspect, | ||
| Type | aNear, | ||
| Type | aFar | ||
| ) |
| void MMatrix< Type >::setPerspective | ( | Type | aFieldOfViewAngle, |
| Type | aAspect, | ||
| Type | aNear, | ||
| Type | aFar | ||
| ) |
The method makes the current matrix as a projection matrix with given parameters.
| void MMatrix< Type >::setRotation | ( | Type | aAngle, |
| Type | aX, | ||
| Type | aY, | ||
| Type | aZ | ||
| ) |
| void MMatrix< Type >::setRotation | ( | Type | aAngle, |
| Type | aX, | ||
| Type | aY, | ||
| Type | aZ | ||
| ) |
| void MMatrix< Type >::setRotation | ( | Type | aAngle, |
| Type | aX, | ||
| Type | aY, | ||
| Type | aZ | ||
| ) |
The method sets a rotation for the current matrix. It will cancel all other operations previously done on the matrix.
| void MMatrix< Type >::setScale | ( | Type | aX, |
| Type | aY, | ||
| Type | aZ | ||
| ) |
| void MMatrix< Type >::setScale | ( | Type | aX, |
| Type | aY, | ||
| Type | aZ | ||
| ) |
| void MMatrix< Type >::setScale | ( | Type | aX, |
| Type | aY, | ||
| Type | aZ | ||
| ) |
The method sets a scale for the current matrix. It will cancel all other operations previously done on the matrix.
The method sets a scale for the current matrix. It will cancel all other operations previously done on the matrix.
| void MMatrix< Type >::transpose | ( | ) |
| void MMatrix< Type >::transpose | ( | ) |
| void MMatrix< Type >::transpose | ( | ) |
The method transposes the current matrix - rows become columns and vice versa.
|
private |