Commit 7c03e46a authored by Vytor Calixto's avatar Vytor Calixto 👾
Browse files

Alterado retorno de longLatToXY para Point

parent bf4d4990
......@@ -78,7 +78,7 @@ public class TilesManager {
return (int) 256 << zoom;
}
public PointD longLatToXY(double latitude, double longitude){
public Point longLatToXY(double latitude, double longitude){
latitude = clip(latitude, minLatitude, maxLatitude);
longitude = clip(longitude, minLongitude, maxLongitude);
......@@ -87,10 +87,10 @@ public class TilesManager {
double y = 0.5 - Math.log((1 + sinLatitude) / (1 - sinLatitude)) / (4 * Math.PI);
int mapSize = tamanhoMapa();
PointD pointD = new PointD();
pointD.setX((int) clip(x * mapSize + 0.5, 0, mapSize - 1));
pointD.setY((int) clip(y * mapSize + 0.5, 0, mapSize - 1));
return pointD;
Point point = new Point();
point.x = ((int) clip(x * mapSize + 0.5, 0, mapSize - 1));
point.y = ((int) clip(y * mapSize + 0.5, 0, mapSize - 1));
return point;
}
public PointD xyToLongLat(int pixelX, int pixelY) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment