Construct a grid from a 2D tile array. See rectGrid for a constructor with type inference.
The type used to represent a tile in this grid
Return all tiles adjacent to the tile at the given coord (not including the tile itself).
Get a range that iterates through every coordinate in the grid.
Get a range that iterates through every tile in the grid.
True if the grid coordinate is within the grid bounds.
Same as maskTiles, but return coords instead of tiles.
Same as maskCoords, but centered.
Select specific tiles from this slice based on a mask.
Same as maskTiles, but centered.
Number of columns along a grid's x axis.
Number of rows along a grid's y axis.
The total number of tiles in a grid.
Foreach over every tile in the grid. Supports ref.
Foreach over every (coord,tile) pair in the grid. Supports ref.
Get the tile at a given position in the grid. The coord must be in bounds.
Access tiles via a range of coords. Tiles are returned by ref.
A grid of rectangular tiles. Wraps a 2D array to provide grid-based access to tiles.