RectGrid.maskCoordsAround

Same as maskCoords, but centered.

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

Parameters

center RowCol

map coord on which to position the center of the mask. if the mask has an even side length, rounds down to compute the 'center'

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