Quadruple
touchgfx/Math3D.hpp
Base class for homogeneous vectors and points.
Public Functions
| FORCE_INLINE_FUNCTION float | getElement(int row) const |
| Gets an element. | |
| FORCE_INLINE_FUNCTION float | getW() const |
| Get w coordinate. | |
| FORCE_INLINE_FUNCTION float | getX() const |
| Get x coordinate. | |
| FORCE_INLINE_FUNCTION float | getY() const |
| Get y coordinate. | |
| FORCE_INLINE_FUNCTION float | getZ() const |
| Get z coordinate. | |
| FORCE_INLINE_FUNCTION void | setElement(int row, float value) |
| Sets an element. | |
| FORCE_INLINE_FUNCTION void | setW(float value) |
| Sets a w coordinate. | |
| FORCE_INLINE_FUNCTION void | setX(float value) |
| Sets an x coordinate. | |
| FORCE_INLINE_FUNCTION void | setY(float value) |
| Sets a y coordinate. | |
| FORCE_INLINE_FUNCTION void | setZ(float value) |
| Sets a z coordinate. | |
Protected Functions
| FORCE_INLINE_FUNCTION | Quadruple() |
| Initializes a new instance of the Quadruple class. | |
| FORCE_INLINE_FUNCTION | Quadruple(float x, float y, float z, float w) |
| Initializes a new instance of the Quadruple class. | |
Protected Attributes
| float | elements |
| The elements[4]. | |
Public Functions Documentation
getElement
| FORCE_INLINE_FUNCTION float getElement | ( | int | row | ) | |
Gets an element.
Parameters:
| row | The row (0-3). |
Returns:
The element.
getW
| FORCE_INLINE_FUNCTION float getW | ( | ) | const |
Get w coordinate.
Returns:
The w coordinate.
getX
| FORCE_INLINE_FUNCTION float getX | ( | ) | const |
Get x coordinate.
Returns:
The x coordinate.
getY
| FORCE_INLINE_FUNCTION float getY | ( | ) | const |
Get y coordinate.
Returns:
The y coordinate.
getZ
| FORCE_INLINE_FUNCTION float getZ | ( | ) | const |
Get z coordinate.
Returns:
The z coordinate.
setElement
| FORCE_INLINE_FUNCTION void setElement | ( | int | row , | ||
| float | value | ||||
| ) |
Sets an element.
Parameters:
| row | The row (0-3). |
| value | The new value. |
setW
| FORCE_INLINE_FUNCTION void setW | ( | float | value | ) | |
Sets a w coordinate.
Parameters:
| value | The new value. |
setX
| FORCE_INLINE_FUNCTION void setX | ( | float | value | ) | |
Sets an x coordinate.
Parameters:
| value | The new value. |
setY
| FORCE_INLINE_FUNCTION void setY | ( | float | value | ) | |
Sets a y coordinate.
Parameters:
| value | The new value. |
setZ
| FORCE_INLINE_FUNCTION void setZ | ( | float | value | ) | |
Sets a z coordinate.
Parameters:
| value | The new value. |
Protected Functions Documentation
Quadruple
Quadruple
| FORCE_INLINE_FUNCTION Quadruple | ( | float | x , | ||
| float | y , | ||||
| float | z , | ||||
| float | w | ||||
| ) |
Initializes a new instance of the Quadruple class.
Parameters:
| x | The x coordinate. |
| y | The y coordinate. |
| z | The z coordinate. |
| w | The w coordinate. |
Protected Attributes Documentation
elements
float elements
The elements[4].