Move projection and tile arithmetic to its own file

This commit is contained in:
Eric Fischer
2014-10-24 17:22:14 -07:00
parent 754dbf152a
commit 46100c34df
9 changed files with 82 additions and 79 deletions
+4
View File
@@ -0,0 +1,4 @@
void latlon2tile(double lat, double lon, int zoom, unsigned int *x, unsigned int *y);
void tile2latlon(unsigned int x, unsigned int y, int zoom, double *lat, double *lon);
unsigned long long encode(unsigned int wx, unsigned int wy);
void decode(unsigned long long index, unsigned *wx, unsigned *wy);