RectGrid.maskCoords

Same as maskTiles, but return coords instead of tiles.

struct RectGrid(T)
maskCoords
(
T
)
if (
isValidMask!T
)

Parameters

offset RowCol

map coordinate on which to align the top-left corner of the mask.

mask T

a rectangular array of true/false values indicating which tiles to take. each true value takes the tile at that grid coordinate. the mask should be in row major order (indexed as maskrowcol).

Meta