Template RectGrid.maskCoordsAround
Same as maskCoords
, but centered.
Arguments
template maskCoordsAround(T);
Functions
Function name | Description |
---|---|
maskCoordsAround |
Parameters
Name | Description |
---|---|
center | 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 | 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 mask[row][col]). |
Authors
Copyright
Copyright © 2015, Ryan Roden-Corrent