public class NedFrame
extends java.lang.Object
Author: Robert Hayes
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
protected float x
protected float y
protected float z
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
- NedFramepublic 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()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details