Public Member Functions | |
| Coordinate () | |
| Default constructor. | |
| Coordinate (double latitude, double longitude) | |
| Construct given a latitude and longitude. | |
| void | setLatitude (double latitude) |
| Set the latitude. | |
| void | setLongitude (double longitude) |
| Set the longitude. | |
| double | latitude () const |
| Returns the latitude. | |
| double | longitude () const |
| Retursn the longitude. | |
| double | distanceTo (const Coordinate &rhs) const |
| Calculate the distance between two points in km (approximate). | |
| std::pair< double, double > | operator() () const |
| Conversion operator to pair of double. | |
| double Wt::WGoogleMap::Coordinate::distanceTo | ( | const Coordinate & | rhs | ) | const |
Calculate the distance between two points in km (approximate).
The calculation uses a sphere. Results can be out by 0.3%.
1.5.6