KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
Loading...
Searching...
No Matches
earthgeo.h
1/**
2 * @brief Physical constants and cardinal bearings for Earth-based geodetic calculations.
3 */
4#ifndef EARTHGEO_H
5#define EARTHGEO_H
6#include "Kanoop/kanoopcommon.h"
7
8/**
9 * @brief Provides physical constants and compass bearing constants for geodetic calculations.
10 *
11 * All bearings are in degrees, measured clockwise from North (0°).
12 */
13class KANOOP_EXPORT EarthGeo
14{
15public:
16 EarthGeo();
17
18public:
19 static const double EarthRadius; ///< Mean Earth radius in metres
20 static const int GeoPrecision; ///< Decimal places used for coordinate comparison
21 static const int LengthPrecision;///< Decimal places used for distance values
22
23 static const double North; ///< Bearing 0° (due north)
24 static const double NorthEast; ///< Bearing 45°
25 static const double East; ///< Bearing 90°
26 static const double SouthEast; ///< Bearing 135°
27 static const double South; ///< Bearing 180°
28 static const double SouthWest; ///< Bearing 225°
29 static const double West; ///< Bearing 270°
30 static const double NorthWest; ///< Bearing 315°
31};
32
33#endif // EARTHGEO_H
Physical constants and cardinal bearings for Earth-based geodetic calculations.
Definition earthgeo.h:14
static const int LengthPrecision
Decimal places used for distance values.
Definition earthgeo.h:21
static const double West
Bearing 270°
Definition earthgeo.h:29
static const double NorthEast
Bearing 45°
Definition earthgeo.h:24
static const double SouthWest
Bearing 225°
Definition earthgeo.h:28
static const int GeoPrecision
Decimal places used for coordinate comparison.
Definition earthgeo.h:20
static const double EarthRadius
Mean Earth radius in metres.
Definition earthgeo.h:19
static const double NorthWest
Bearing 315°
Definition earthgeo.h:30
static const double East
Bearing 90°
Definition earthgeo.h:25
static const double SouthEast
Bearing 135°
Definition earthgeo.h:26
static const double South
Bearing 180°
Definition earthgeo.h:27
static const double North
Bearing 0° (due north)
Definition earthgeo.h:23