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 EarthLocation
public double getLongitude()
getLongitude
in interface EarthLocation
public double getAltitude()
getAltitude
in interface EarthLocation
public LatLonPoint getLatLon()
getLatLon
in interface EarthLocation
public boolean isMissing()
EarthLocation
isMissing
in interface EarthLocation
protected 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