Go to the documentation of this file.
3 #include <glm/vec2.hpp>
29 constexpr glm::ivec2
N(0, -1);
31 constexpr glm::ivec2
E(1, 0);
33 constexpr glm::ivec2
S(0, 1);
35 constexpr glm::ivec2
W(-1, 0);
37 constexpr glm::ivec2
NE(1, -1);
39 constexpr glm::ivec2
SW(-1, 1);
constexpr glm::ivec2 NE(1, -1)
Unit int vector North-East.
constexpr glm::ivec2 N(0, -1)
Unit int vector North.
constexpr glm::ivec2 S(0, 1)
Unit int vector South.
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.
constexpr glm::ivec2 E(1, 0)
Unit int vector East.
constexpr glm::ivec2 W(-1, 0)
Unit int vector West.
constexpr glm::ivec2 SW(-1, 1)
Unit int vector South-West.