org.osm2world.core.map_data.creation
Class HackMapProjection

Object
  extended by HackMapProjection
All Implemented Interfaces:
MapProjection

public class HackMapProjection
extends Object
implements MapProjection

quick-and-dirty projection that is intended to use the "dense" space of floating point values, and tries to make 1 meter the distance represented by 1 internal unit


Field Summary
static double SCALE_X
           
static double SCALE_Y
           
 
Constructor Summary
HackMapProjection(OSMData osmData)
           
 
Method Summary
 VectorXZ calcPos(double lat, double lon)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCALE_X

public static final double SCALE_X
See Also:
Constant Field Values

SCALE_Y

public static final double SCALE_Y
See Also:
Constant Field Values
Constructor Detail

HackMapProjection

public HackMapProjection(OSMData osmData)
Method Detail

calcPos

public VectorXZ calcPos(double lat,
                        double lon)
Specified by:
calcPos in interface MapProjection