|
stmm-games-doc
0.32.0
|
Public Types | |
| enum | VALUE { UP = 1, DOWN = 2, LEFT = 0, RIGHT = 3 } |
| The possible direction values. More... | |
Static Public Member Functions | |
| static VALUE | fromDelta (int32_t nDx, int32_t nDy) noexcept |
| The direction from the unary delta of the coords. More... | |
| static int32_t | deltaX (VALUE eDir) noexcept |
| The x delta of a given direction. More... | |
| static int32_t | deltaY (VALUE eDir) noexcept |
| The y delta of a given direction. More... | |
| static VALUE | rotateCW (VALUE eDir) noexcept |
| The clockwise rotated direction. More... | |
| static VALUE | rotateCCW (VALUE eDir) noexcept |
| The counter clockwise rotated direction. More... | |
| static VALUE | opposite (VALUE eDir) noexcept |
| The opposite direction. More... | |
|
inlinestaticnoexcept |
The x delta of a given direction.
| eDir | The direction. |
|
inlinestaticnoexcept |
The y delta of a given direction.
| eDir | The direction. |
|
inlinestaticnoexcept |
The direction from the unary delta of the coords.
| nDx | The x delta. Must be either -1, 0 or +1. |
| nDy | The y delta. Must be either -1, 0 or +1. |
The opposite direction.
Example: The opposite direction of Direction::DOWN is Direction::UP.
| eDir | The direction. |
The counter clockwise rotated direction.
Example: The counter clockwise rotation of Direction::LEFT is Direction::DOWN.
| eDir | The direction. |
The clockwise rotated direction.
Example: The clockwise rotation of Direction::UP is Direction::RIGHT.
| eDir | The direction. |
1.8.13