Coordinates.
More...
#include <defs.h>
|
| Coord (int lat, int lon) |
|
| Coord (double lat, double lon) |
|
double | dlat () const |
|
double | dlon () const |
|
bool | operator< (const Coord &o) const |
|
bool | operator> (const Coord &o) const |
|
bool | operator== (const Coord &c) const |
|
bool | operator!= (const Coord &c) const |
|
int | compare (const Coord &o) const |
| Compare two Coords strutures, for use in sorting. More...
|
|
|
static int | normalon (int lon) |
|
static double | fnormalon (double lon) |
|
|
int | lat |
| Latitude multiplied by 100000 (5 significant digits preserved)
|
|
int | lon |
| Longitude normalised from -180.0 to 180.0 and multiplied by 100000 (5 significant digits preserved)
|
|
int dballe::Coord::compare |
( |
const Coord & |
o | ) |
const |
|
inline |
Compare two Coords strutures, for use in sorting.
- Returns
- -1 if *this < o, 0 if *this == o, 1 if *this > o
References lat, and lon.
The documentation for this struct was generated from the following file: