gridSnapCentered method
Implementation
@override
Point gridSnapCentered(Point center, int size) {
if (size % 2 == 1) {
return tileCenterInGrid(worldToTile(gridToWorldSpace(center)));
} else {
return worldToGridSpace(snapToIntersection(gridToWorldSpace(center)));
}
}