public final class TangentPlane extends Object implements GeoProjection, Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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.
|
String |
toString() |
LatLonGeo |
unproject(double planeX,
double planeY)
Convert projected x,y position back to (nearly) equivalent LatLon.
|
public static final long serialVersionUID
public TangentPlane(LatLonGeo latLon)
latLon
- public TangentPlane(LatLonGeo latLon, double tangentPointOnPlaneX, double tangentPointOnPlaneY)
latLon
- tangentPointOnPlaneX
- tangentPointOnPlaneY
- public LatLonGeo unproject(double planeX, double planeY)
GeoProjection
unproject
in interface GeoProjection
planeX
- projected x positionplaneY
- projected y positionpublic 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 projectionpublic 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 projectionCopyright © 2013 Metron, Inc.. All rights reserved.