Add 2 methods

This commit is contained in:
Victor Shcherb 2020-02-01 18:50:19 +01:00
parent 1690d0510f
commit 416b8d3665

View file

@ -212,6 +212,19 @@ public class RotatedTileBox {
return pixHeight;
}
public float getPixXFrom31(int x31, int y31) {
double zm = getPowZoom(31 - zoom);
double xTile = ((double) x31) / zm;
double yTile = ((double) y31) / zm;
return getPixXFromTile(xTile, yTile);
}
public float getPixYFrom31(int x31, int y31) {
double zm = getPowZoom(31 - zoom);
double xTile = ((double) x31) / zm;
double yTile = ((double) y31) / zm;
return getPixYFromTile(xTile, yTile);
}
public float getPixXFromLatLon(double latitude, double longitude) {
double xTile = MapUtils.getTileNumberX(zoom, longitude);