org.free.garminimg.utils
Interface MapTransformer.Converter<T2>

All Known Implementing Classes:
NullConverter
Enclosing class:
MapTransformer<T>

public static interface MapTransformer.Converter<T2>

Interface for the class converting from/to the user defined coordinate system and datum to/from WGS84.

Must be state less and thread safe.


Method Summary
 T2 createFromXY(double x, double y)
          Create a coordinate from a X/Y position.
 void fromWGS84(double lon, double lat, T2 result)
          Convert the WGS84 (radians) into the coordinate system.
 double getX(T2 xy)
           
 double getY(T2 xy)
           
 void toWGS84(T2 coordinate, java.awt.geom.Point2D.Double result)
          Convert the coordinate system into WGS84 (radians).
 

Method Detail

fromWGS84

void fromWGS84(double lon,
               double lat,
               T2 result)
Convert the WGS84 (radians) into the coordinate system.


toWGS84

void toWGS84(T2 coordinate,
             java.awt.geom.Point2D.Double result)
Convert the coordinate system into WGS84 (radians).

Parameters:
result - Where the result is put. Longitude in x and latitude in y.

createFromXY

T2 createFromXY(double x,
                double y)
Create a coordinate from a X/Y position.


getX

double getX(T2 xy)

getY

double getY(T2 xy)


Copyright © 2008. All Rights Reserved.