46 throw std::invalid_argument(
"The number of blocks has to be positive");
54 int const min_x = std::max(0, center_tile.
x - blocks);
55 int const min_y = std::max(0, center_tile.
y - blocks);
59 left_top = { min_x, min_y };
60 right_bottom = { max_x, max_y };
79 return in_area && corresponds;
Area(TileId center, int blocks)
Creates a square area with the center center and the radius blocks.
int zoomToMaxTiles(int zoom)
bool areaContainsTile(Area const &haystack, TileId const &needle)
bool operator==(Area const &self, Area const &other)
TileCoordinate right_bottom