org.jdesktop.swingx.mapviewer.util
Class MercatorUtils

java.lang.Object
  extended by org.jdesktop.swingx.mapviewer.util.MercatorUtils

public final class MercatorUtils
extends Object

A utility class of methods that help when dealing with standard Mercator projections.


Method Summary
static int latToY(double latitudeDegrees, double radius)
           
static int longToX(double longitudeDegrees, double radius)
           
static double xToLong(int x, double radius)
           
static double yToLat(int y, double radius)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

longToX

public static int longToX(double longitudeDegrees,
                          double radius)

latToY

public static int latToY(double latitudeDegrees,
                         double radius)

xToLong

public static double xToLong(int x,
                             double radius)

yToLat

public static double yToLat(int y,
                            double radius)