#include <Gps.h>
Public Member Functions | |
| void | clear () |
| double | latitude () |
| double | longitude () |
| String | longitudeString () |
| String | latitudeString () |
| double | distanceTo (MyLocation &location) |
| double | courseTo (MyLocation &location) |
Static Public Member Functions | |
| static double | distanceBetween (double lat1, double long1, double lat2, double long2) |
| static double | courseTo (double lat1, double long1, double lat2, double long2) |
Protected Attributes | |
| MyDegrees | latitude_ |
| Latitude. | |
| MyDegrees | longitude_ |
| Longitude. | |
Friends | |
| class | MyGps |
| void MyLocation::clear | ( | ) |
Reset the values.
Definition at line 241 of file Gps.h.
References MyDegrees::clear(), latitude_, and longitude_.
Referenced by MyGps::clear().
|
static |
Calculate the course between two gps positions
Definition at line 274 of file Gps.h.
Referenced by courseTo().
| double MyLocation::courseTo | ( | MyLocation & | to | ) |
Calculate the course to another gps location
Definition at line 325 of file Gps.h.
References courseTo(), latitude(), and longitude().
|
static |
Calculate the distance between two gps positions in meter
Definition at line 248 of file Gps.h.
Referenced by distanceTo().
| double MyLocation::distanceTo | ( | MyLocation & | to | ) |
Calculate the distance between to another gps location
Definition at line 319 of file Gps.h.
References distanceBetween(), latitude(), and longitude().
Referenced by MyGsmGps::getGps(), and MyGsmGps::getGpsFromGsm().
| double MyLocation::latitude | ( | ) |
Gets the latitude
Definition at line 295 of file Gps.h.
References latitude_, and MyDegrees::value().
Referenced by courseTo(), distanceTo(), MyGsmGps::getGps(), MyGsmGps::getGpsFromGsm(), and latitudeString().
| String MyLocation::latitudeString | ( | ) |
Returns the latitude as a string
Definition at line 313 of file Gps.h.
References latitude().
Referenced by MyGps::latitudeString().
| double MyLocation::longitude | ( | ) |
Gets the Longitude
Definition at line 301 of file Gps.h.
References longitude_, and MyDegrees::value().
Referenced by courseTo(), distanceTo(), and longitudeString().
| String MyLocation::longitudeString | ( | ) |
Returns the longitude as a string
Definition at line 307 of file Gps.h.
References longitude().
Referenced by MyGps::longitudeString().
1.8.6