sKit  0.0.9
grids.hpp File Reference
#include <glm/vec2.hpp>
#include <vector>

Go to the source code of this file.

Namespaces

 sKit
 
 sKit::structure
 

Functions

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. More...
 
constexpr glm::ivec2 sKit::structure::N (0, -1)
 Unit int vector North. More...
 
constexpr glm::ivec2 sKit::structure::E (1, 0)
 Unit int vector East. More...
 
constexpr glm::ivec2 sKit::structure::S (0, 1)
 Unit int vector South. More...
 
constexpr glm::ivec2 sKit::structure::W (-1, 0)
 Unit int vector West. More...
 
constexpr glm::ivec2 sKit::structure::NE (1, -1)
 Unit int vector North-East. More...
 
constexpr glm::ivec2 sKit::structure::SW (-1, 1)
 Unit int vector South-West. More...