Authored by Thomas Rasch

o Added RMMakeTile

... ... @@ -74,6 +74,15 @@ char RMTilesEqual(RMTile one, RMTile two)
return (one.x == two.x) && (one.y == two.y) && (one.zoom == two.zoom);
}
RMTile RMTileMake(uint32_t x, uint32_t y, short zoom)
{
RMTile t;
t.x = x;
t.y = y;
t.zoom = zoom;
return t;
}
// Round the rectangle to whole numbers of tiles
RMTileRect RMTileRectRound(RMTileRect rect)
{
... ...
... ... @@ -62,6 +62,8 @@ char RMTilesEqual(RMTile one, RMTile two);
char RMTileIsDummy(RMTile tile);
RMTile RMTileDummy();
RMTile RMTileMake(uint32_t x, uint32_t y, short zoom);
/// Return a hash of the tile, used to override the NSObject hash method for RMTile.
uint64_t RMTileHash(RMTile tile);
... ...