|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metsci.glimpse.charts.vector.MercatorProjection
public class MercatorProjection
Mercator cylindrical map projection.
Constructor Summary | |
---|---|
MercatorProjection()
|
|
MercatorProjection(double center_longitude_deg)
|
Method Summary | |
---|---|
Vector2d |
project(LatLonGeo latLon)
Convert LatLon to (nearly) equivalent projected x,y position. |
Vector2d |
reprojectFrom(double x,
double y,
GeoProjection fromProjection)
Reproject an x,y position from a previous projection to this projection. |
KinematicVector2d |
reprojectPosVelFrom(double x,
double y,
double vx,
double vy,
GeoProjection fromProjection)
Reproject x, y position and corresponding x, y velocity vector at that location from a previous projection to this projection. |
LatLonGeo |
unproject(double x,
double y)
Convert projected x,y position back to (nearly) equivalent LatLon. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MercatorProjection(double center_longitude_deg)
public MercatorProjection()
Method Detail |
---|
public Vector2d project(LatLonGeo latLon)
GeoProjection
project
in interface GeoProjection
public LatLonGeo unproject(double x, double y)
GeoProjection
unproject
in interface GeoProjection
x
- projected x positiony
- projected y position
public Vector2d reprojectFrom(double x, double y, GeoProjection fromProjection)
GeoProjection
This is equivalent to unprojecting the x,y position from the old projection and then projecting it to this projection, but in a single step, which may be performed more efficiently.
reprojectFrom
in interface GeoProjection
x
- previously projected x positiony
- previously projected y positionfromProjection
- previous projection
public KinematicVector2d reprojectPosVelFrom(double x, double y, double vx, double vy, GeoProjection fromProjection)
GeoProjection
reprojectPosVelFrom
in interface GeoProjection
x
- previously projected x positiony
- previously projected y positionvx
- previous x velocity component in projection spacevy
- previous y velocity component in projection spacefromProjection
- previous projection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |