org.osm2world.core.map_data.creation
public class OrthographicAzimuthalMapProjection extends OriginMapProjection
origin
Constructor and Description |
---|
OrthographicAzimuthalMapProjection() |
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 latDeg,
double lonDeg) |
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.
|
void |
setOrigin(OSMData osmData)
sets a new origin.
|
getOrigin
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
public void setOrigin(OSMData osmData)
OriginMapProjection
setOrigin
in class OriginMapProjection
OriginMapProjection.setOrigin(LatLon)
public VectorXZ calcPos(double latDeg, double lonDeg)
public double calcLat(VectorXZ pos)
MapProjection
MapProjection.calcPos(double, double)
public double calcLon(VectorXZ pos)
MapProjection
MapProjection.calcPos(double, double)
public VectorXZ getNorthUnit()
MapProjection