Matrix4x4
touchgfx/Math3D.hpp
This class represents row major 4x4 homogeneous matrices.
Public Functions
Matrix4x4 & | concatenateXRotation(float radians) |
Concatenate x coordinate rotation. | |
Matrix4x4 & | concatenateXScale(float distance) |
Concatenate x coordinate scale. | |
Matrix4x4 & | concatenateXTranslation(float distance) |
Concatenate x coordinate translation. | |
Matrix4x4 & | concatenateYRotation(float radians) |
Concatenate y coordinate rotation. | |
Matrix4x4 & | concatenateYScale(float distance) |
Concatenate y coordinate scale. | |
Matrix4x4 & | concatenateYTranslation(float distance) |
Concatenate y coordinate translation. | |
Matrix4x4 & | concatenateZRotation(float radians) |
Concatenate z coordinate rotation. | |
Matrix4x4 & | concatenateZScale(float distance) |
Concatenate z coordinate scale. | |
Matrix4x4 & | concatenateZTranslation(float distance) |
Concatenate z coordinate translation. | |
FORCE_INLINE_FUNCTION float | getElement(int row, int column) const |
Gets an element. | |
Matrix4x4() | |
Initializes a new instance of the Point4 class. | |
FORCE_INLINE_FUNCTION Matrix4x4 | setElement(int row, int column, float value) |
Sets an element. | |
void | setViewDistance(float distance) |
Sets view distance. | |
Protected Attributes
float | elements |
The elements[4][4]. | |
Public Functions Documentation
concatenateXRotation
Matrix4x4 & concatenateXRotation | ( | float | radians | ) | |
Concatenate x coordinate rotation.
Parameters:
radians | The radians. |
Returns:
A matrix_4x4&
concatenateXScale
Matrix4x4 & concatenateXScale | ( | float | distance | ) | |
Concatenate x coordinate scale.
Parameters:
distance | The distance. |
Returns:
A matrix_4x4&
concatenateXTranslation
Matrix4x4 & concatenateXTranslation | ( | float | distance | ) | |
Concatenate x coordinate translation.
Parameters:
distance | The distance. |
Returns:
A matrix_4x4&
concatenateYRotation
Matrix4x4 & concatenateYRotation | ( | float | radians | ) | |
Concatenate y coordinate rotation.
Parameters:
radians | The radians. |
Returns:
A matrix_4x4&
concatenateYScale
Matrix4x4 & concatenateYScale | ( | float | distance | ) | |
Concatenate y coordinate scale.
Parameters:
distance | The distance. |
Returns:
A matrix_4x4&
concatenateYTranslation
Matrix4x4 & concatenateYTranslation | ( | float | distance | ) | |
Concatenate y coordinate translation.
Parameters:
distance | The distance. |
Returns:
A matrix_4x4&
concatenateZRotation
Matrix4x4 & concatenateZRotation | ( | float | radians | ) | |
Concatenate z coordinate rotation.
Parameters:
radians | The radians. |
Returns:
A matrix_4x4&
concatenateZScale
Matrix4x4 & concatenateZScale | ( | float | distance | ) | |
Concatenate z coordinate scale.
Parameters:
distance | The distance. |
Returns:
A matrix_4x4&
concatenateZTranslation
Matrix4x4 & concatenateZTranslation | ( | float | distance | ) | |
Concatenate z coordinate translation.
Parameters:
distance | The distance. |
Returns:
A matrix_4x4&
getElement
FORCE_INLINE_FUNCTION float getElement | ( | int | row , | const | |
int | column | const | |||
) | const |
Gets an element.
Parameters:
row | The row (0-3). |
column | The column (0-3). |
Returns:
The element.
Matrix4x4
Initializes a new instance of the Point4 class.
setElement
FORCE_INLINE_FUNCTION Matrix4x4 setElement | ( | int | row , | ||
int | column , | ||||
float | value | ||||
) |
Sets an element.
Parameters:
row | The row. |
column | The column. |
value | The value. |
Returns:
A matrix_4x4&
setViewDistance
void setViewDistance | ( | float | distance | ) | |
Sets view distance.
Parameters:
distance | The distance. |
Protected Attributes Documentation
elements
float elements
The elements[4][4].