|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metsci.glimpse.util.geo.projection.TangentPlane
public final class TangentPlane
Implementation of GeoProjection via a plane which is tangent to the Earth and maps x, y coordinates on the plane to/from lat/lon pairs. Class instances are immutable.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
TangentPlane(LatLonGeo latLon)
Create tangent plane mapping latLon to 0,0 on plane. |
|
TangentPlane(LatLonGeo latLon,
double tangentPointOnPlaneX,
double tangentPointOnPlaneY)
Create tangent plane mapping latLon to x, y on plane. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
Vector3d |
getLocalEast()
The vector (in ECEF-r coordinates) corresponding to traveling East on the tangent plane. |
Vector3d |
getLocalNorth()
The vector (in ECEF-r coordinates) corresponding to traveling North on the tangent plane. |
LatLonGeo |
getRefLatLon()
|
Vector3d |
getRefPointOnUnitSphere()
|
Vector2d |
getTangentPointOnPlane()
Tangent plane coordinates (x,y) of point on the plane tangent to reference LatLon. |
int |
hashCode()
|
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. |
java.lang.String |
toString()
|
LatLonGeo |
unproject(double planeX,
double planeY)
Convert projected x,y position back to (nearly) equivalent LatLon. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public TangentPlane(LatLonGeo latLon)
latLon
- public TangentPlane(LatLonGeo latLon, double tangentPointOnPlaneX, double tangentPointOnPlaneY)
latLon
- tangentPointOnPlaneX
- tangentPointOnPlaneY
- Method Detail |
---|
public LatLonGeo unproject(double planeX, double planeY)
GeoProjection
unproject
in interface GeoProjection
planeX
- projected x positionplaneY
- projected y position
public Vector2d project(LatLonGeo latLon)
GeoProjection
project
in interface GeoProjection
public LatLonGeo getRefLatLon()
public Vector3d getRefPointOnUnitSphere()
public Vector3d getLocalEast()
public Vector3d getLocalNorth()
public Vector2d getTangentPointOnPlane()
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
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |