RectGrid.maskCoords

Same as maskTiles, but return coords instead of tiles.

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

Parameters

offset
Type: RowCol

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

mask
Type: 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