Groovy Documentation

org.jdesktop.swingx.mapviewer.util
[Java] Class MercatorUtils

java.lang.Object
  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.

Authors:
joshua.marinacci@sun.com


Constructor Summary
private MercatorUtils()

Creates a new instance of MercatorUtils

 
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 Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

MercatorUtils

private MercatorUtils()
Creates a new instance of MercatorUtils


 
Method Detail

latToY

public static int latToY(double latitudeDegrees, double radius)


longToX

public static int longToX(double longitudeDegrees, double radius)


xToLong

public static double xToLong(int x, double radius)


yToLat

public static double yToLat(int y, double radius)


 

Groovy Documentation