public class EarthLocationImpl extends java.lang.Object implements EarthLocation
| Modifier and Type | Field and Description |
|---|---|
protected double |
alt |
protected double |
lat |
protected double |
lon |
| Modifier | Constructor and Description |
|---|---|
protected |
EarthLocationImpl() |
|
EarthLocationImpl(double lat,
double lon,
double alt) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAltitude()
altitude in meters; missing = NaN.
|
double |
getLatitude()
latitude in decimal degrees north
|
LatLonPoint |
getLatLon()
Get the lat/lon location
|
double |
getLongitude()
longitude in decimal degrees east
|
boolean |
isMissing()
Are either lat or lon missing?
|
protected void |
setAltitude(double alt) |
protected void |
setLatitude(double lat) |
protected void |
setLongitude(double lon) |
java.lang.String |
toString() |
protected EarthLocationImpl()
public EarthLocationImpl(double lat,
double lon,
double alt)
public double getLatitude()
getLatitude in interface EarthLocationpublic double getLongitude()
getLongitude in interface EarthLocationpublic double getAltitude()
getAltitude in interface EarthLocationpublic LatLonPoint getLatLon()
getLatLon in interface EarthLocationpublic boolean isMissing()
EarthLocationisMissing in interface EarthLocationprotected void setLatitude(double lat)
protected void setLongitude(double lon)
protected void setAltitude(double alt)
public java.lang.String toString()
toString in class java.lang.Object