27 lines
424 B
C
27 lines
424 B
C
#ifndef EARTHPOS_H
|
|
#define EARTHPOS_H
|
|
|
|
/** describes the location on the earth's surface */
|
|
struct EarthPos {
|
|
|
|
double lat;
|
|
|
|
double lon;
|
|
|
|
/** height above sea level */
|
|
float height;
|
|
|
|
/** empty ctor */
|
|
EarthPos() : lat(NAN), lon(NAN), height(NAN) {
|
|
;
|
|
}
|
|
|
|
/** ctor with values */
|
|
EarthPos(const double lat, const double lon, const float height) : lat(lat), lon(lon), height(height) {
|
|
;
|
|
}
|
|
|
|
};
|
|
|
|
#endif // EARTHPOS_H
|