Template RectGrid.maskCoordsAround

Same as maskCoords, but centered.

Arguments

template maskCoordsAround(T);

Functions

Function name Description
maskCoordsAround

Parameters

NameDescription
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

rcorre

Copyright

Copyright © 2015, Ryan Roden-Corrent

License

MIT