|
sKit
0.0.9
|
Classes | |
| class | BRect |
| class | BRectBase |
| The base class of BRect implemented as CRTP. Do not use directly. More... | |
| struct | Dimensions |
Functions | |
| auto | gridFillDiagonal (int numCols, int numRows) -> std::vector< glm::ivec2 > |
| Creates a path following the coordinates of every cell in a grid that has a diagonal tendency. More... | |
| constexpr glm::ivec2 | N (0, -1) |
| Unit int vector North. More... | |
| constexpr glm::ivec2 | E (1, 0) |
| Unit int vector East. More... | |
| constexpr glm::ivec2 | S (0, 1) |
| Unit int vector South. More... | |
| constexpr glm::ivec2 | W (-1, 0) |
| Unit int vector West. More... | |
| constexpr glm::ivec2 | NE (1, -1) |
| Unit int vector North-East. More... | |
| constexpr glm::ivec2 | SW (-1, 1) |
| Unit int vector South-West. More... | |
|
constexpr |
Unit int vector East.
Referenced by gridFillDiagonal().
| auto sKit::structure::gridFillDiagonal | ( | int | numCols, |
| int | numRows | ||
| ) | -> std::vector< glm::ivec2 > |
Creates a path following the coordinates of every cell in a grid that has a diagonal tendency.
Example of a 3x3 grid and the path that fills it:
| std::runtime_error | If either numCols or numRows are less than 2. |
numCols by numRows grid.
|
constexpr |
Unit int vector North.
|
constexpr |
Unit int vector North-East.
Referenced by gridFillDiagonal().
|
constexpr |
Unit int vector South.
Referenced by gridFillDiagonal().
|
constexpr |
Unit int vector South-West.
Referenced by gridFillDiagonal().
|
constexpr |
Unit int vector West.