org.osm2world.core.map_data.creation
public class MetricMapProjection extends OriginMapProjection
origin
Constructor and Description |
---|
MetricMapProjection() |
Modifier and Type | Method and Description |
---|---|
double |
calcLat(VectorXZ pos)
inverse for
MapProjection.calcPos(double, double) |
double |
calcLon(VectorXZ pos)
inverse for
MapProjection.calcPos(double, double) |
VectorXZ |
calcPos(double lat,
double lon) |
VectorXZ |
calcPos(LatLon latlon) |
VectorXZ |
getNorthUnit()
returns a vector that points one meter to the north
from the position that becomes the coordinate origin
|
void |
setOrigin(LatLon origin)
sets a new origin.
|
getOrigin, setOrigin
public VectorXZ calcPos(double lat, double lon)
public double calcLat(VectorXZ pos)
MapProjection
MapProjection.calcPos(double, double)
public double calcLon(VectorXZ pos)
MapProjection
MapProjection.calcPos(double, double)
public VectorXZ getNorthUnit()
MapProjection
public void setOrigin(LatLon origin)
OriginMapProjection
MapProjection.calcLat(org.osm2world.core.math.VectorXZ)
,
MapProjection.calcLon(org.osm2world.core.math.VectorXZ)
or
MapProjection.calcPos(LatLon)
before the origin has been set
will result in an IllegalStateException
.setOrigin
in class OriginMapProjection