public final class MercatorUtils extends Object
public static int longToX(double longitudeDegrees, double radius)
longitudeDegrees
- the longitude in degreesradius
- the world radius in pixelspublic static int latToY(double latitudeDegrees, double radius)
latitudeDegrees
- the latitude in degreesradius
- the world radius in pixelspublic static double xToLong(int x, double radius)
x
- the x valueradius
- the world radius in pixelspublic static double yToLat(int y, double radius)
y
- the y valueradius
- the world radius in pixelsCopyright © 2013. All Rights Reserved.