org.osm2world.core.map_data.creation
Class HackMapProjection
Object
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
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
HackMapProjection
public HackMapProjection(OSMData osmData)
calcPos
public VectorXZ calcPos(double lat,
double lon)
- Specified by:
calcPos
in interface MapProjection
calcPos
public VectorXZ calcPos(LatLon latlon)
- Specified by:
calcPos
in interface MapProjection
calcLat
public double calcLat(VectorXZ pos)
- Description copied from interface:
MapProjection
- inverse for
MapProjection.calcPos(double, double)
- Specified by:
calcLat
in interface MapProjection
calcLon
public double calcLon(VectorXZ pos)
- Description copied from interface:
MapProjection
- inverse for
MapProjection.calcPos(double, double)
- Specified by:
calcLon
in interface MapProjection
getNorthUnit
public VectorXZ getNorthUnit()
- Description copied from interface:
MapProjection
- returns a vector that points one meter to the north
from the position that becomes the coordinate origin
- Specified by:
getNorthUnit
in interface MapProjection