|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.hkust.afchecker.data.GPSCoordinate
public class GPSCoordinate
Author: Andrew
File history: Created on July 22, 2011. Last update on Oct. 3, 2012
Description: GPS coordinates include latitude, longitude and altitude
Constructor Summary | |
---|---|
GPSCoordinate(double lat,
double lon,
double alt)
constructor |
Method Summary | |
---|---|
static double |
dist(GPSCoordinate loc1,
GPSCoordinate loc2)
compute the distance between two GPS coodinates ignoring the altitudes |
double |
getAltitude()
get the altitude |
static double |
getGPSPrecision()
get the precision level of the GPS sensor |
double |
getLatitude()
get the latitude value |
double |
getLongitude()
get the longitude |
void |
setAltitude(double alt)
set the altitude to alt |
static void |
setGPSPrecision(double precision)
set the tolerable precision level for GPS |
void |
setLatitude(double lat)
set the latitude to lat |
void |
setLongitude(double lon)
set the longitude to lon |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GPSCoordinate(double lat, double lon, double alt)
lat
- latitudelon
- longitudealt
- altitudeMethod Detail |
---|
public void setLatitude(double lat)
lat
- public double getLatitude()
public void setLongitude(double lon)
lon
- public double getLongitude()
public void setAltitude(double alt)
alt
- public double getAltitude()
public static double getGPSPrecision()
public static void setGPSPrecision(double precision)
precision
- precision in meterspublic static double dist(GPSCoordinate loc1, GPSCoordinate loc2)
loc1
- loc2
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |