|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.unidata.geoloc.EarthLocationImpl
public class EarthLocationImpl
A location on the Earth.
Field Summary | |
---|---|
protected double |
alt
|
protected double |
lat
|
protected double |
lon
|
Constructor Summary | |
---|---|
protected |
EarthLocationImpl()
|
|
EarthLocationImpl(double lat,
double lon,
double alt)
|
Method Summary | |
---|---|
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)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double lat
protected double lon
protected double alt
Constructor Detail |
---|
protected EarthLocationImpl()
public EarthLocationImpl(double lat, double lon, double alt)
Method Detail |
---|
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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |