|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.proj.coords.NedFrame
public class NedFrame
Encapsulates the NED (North-East-Down) coordinate system. This is also know as local tangent plane (LTP).
Author: Robert Hayes
Field Summary | |
---|---|
protected float |
x
The x component of the coordinate (NORTH). |
protected float |
y
The y component of the coordinate (EAST). |
protected float |
z
The z component of the coordinate (DOWN). |
Constructor Summary | |
---|---|
NedFrame()
Construct a default NedFrame. |
|
NedFrame(double[] ecefVector,
LatLonPoint llpt)
Construct a NedFrame from a ECEF vector and a LatLonPoint. |
|
NedFrame(float x,
float y,
float z,
double lat,
double lon)
Construct a NedFrame from ECEF vector and latitude and longitude. |
|
NedFrame(NedFrame nedpt)
Copy construct a NedFrame. |
Method Summary | |
---|---|
void |
ecef2ned(double[] ned,
double latitude,
double longitude,
double[] ecef)
Internal conversion routine. |
float |
getX()
Get x. |
float |
getY()
Get Y. |
float |
getZ()
Get Z. |
void |
ned2ecef(double[] ned,
double latitude,
double longitude,
double[] ecef)
Internal conversion routine. |
void |
setX(float pX)
Set x. |
void |
setXYZ(float v1,
float v2,
float v3)
Set x,y,z. |
void |
setY(float pY)
Set y. |
void |
setZ(float pZ)
Set z. |
double[] |
toGeocentricFrame(LatLonPoint llpt)
Convert to a geocentric frame using a LatLonPoint. |
double |
toHeading()
Get heading. |
double |
toSpeed()
Get speed. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected float x
protected float y
protected float z
Constructor Detail |
---|
public NedFrame()
public NedFrame(float x, float y, float z, double lat, double lon)
x
- ecef x.y
- ecef y.z
- ecef z.lat
- = latitude in degrees.lon
- = longitude in degrees.public NedFrame(double[] ecefVector, LatLonPoint llpt)
ecefVector
- public NedFrame(NedFrame nedpt)
nedpt
- NedFrameMethod Detail |
---|
public double[] toGeocentricFrame(LatLonPoint llpt)
llpt
-
public void ecef2ned(double[] ned, double latitude, double longitude, double[] ecef)
ned
- vectorlatitude
- in radians.longitude
- in radiansecef
- vectorpublic void ned2ecef(double[] ned, double latitude, double longitude, double[] ecef)
ned
- vectorlatitude
- in radians.longitude
- in radiansecef
- vectorpublic java.lang.String toString()
toString
in class java.lang.Object
public void setX(float pX)
pX
- in meters.public void setY(float pY)
pY
- in meters.public void setZ(float pZ)
pZ
- in meters.public void setXYZ(float v1, float v2, float v3)
v1
- North.v2
- East.v3
- Down.public float getX()
public float getY()
public float getZ()
public double toSpeed()
public double toHeading()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |