10#if !defined(GEOGRAPHICLIB_CONSTANTS_HPP)
11#define GEOGRAPHICLIB_CONSTANTS_HPP 1
13#include <GeographicLib/Config.h>
21#define GEOGRAPHICLIB_VERSION_NUM(a,b,c) ((((a) * 10000 + (b)) * 100) + (c))
34#define GEOGRAPHICLIB_VERSION \
35 GEOGRAPHICLIB_VERSION_NUM(GEOGRAPHICLIB_VERSION_MAJOR, \
36 GEOGRAPHICLIB_VERSION_MINOR, \
37 GEOGRAPHICLIB_VERSION_PATCH)
49#if defined(_MSC_VER) && defined(GEOGRAPHICLIB_SHARED_LIB) && \
50 GEOGRAPHICLIB_SHARED_LIB
51# if GEOGRAPHICLIB_SHARED_LIB > 1
52# error GEOGRAPHICLIB_SHARED_LIB must be 0 or 1
53# elif defined(GeographicLib_SHARED_EXPORTS)
54# define GEOGRAPHICLIB_EXPORT __declspec(dllexport)
56# define GEOGRAPHICLIB_EXPORT __declspec(dllimport)
59# define GEOGRAPHICLIB_EXPORT
112 template<
typename T = real>
static T
WGS84_a()
118 template<
typename T = real>
static T
WGS84_f() {
122 return 1 / ( T(298257223563LL) / 1000000000 );
130 {
return T(3986004) * 100000000 + 41800000; }
137 {
return 7292115 / (T(1000000) * 100000); }
142 template<
typename T = real>
static T
GRS80_a()
150 {
return T(3986005) * 100000000; }
164 {
return 7292115 / (T(1000000) * 100000); }
171 {
return T(108263) / 100000000; }
176 template<
typename T = real>
static T
UTM_k0()
177 {
return T(9996) / 10000; }
182 template<
typename T = real>
static T
UPS_k0()
183 {
return T(994) / 1000; }
234 {
return T(1493) / 100; }
247 template<
typename T = real>
static T
meter() {
return T(1); }
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Header for GeographicLib::Math class.
static T Triaxial_Earth_b()
static Math::real arcsecond()
static T Triaxial_Earth_a()
static Math::real square_kilometer()
static Math::real degree()
static Math::real hectare()
static Math::real kilometer()
static Math::real fathom()
static Math::real square_nauticalmile()
static Math::real surveyfoot()
static Math::real furlong()
static Math::real arcminute()
static Math::real square_mile()
static Math::real chain()
static T Triaxial_Earth_c()
static T Triaxial_Earth_lon0()
static Math::real nauticalmile()
GeographicErr(const std::string &msg)
static constexpr int dm
minutes per degree
static constexpr int ds
seconds per degree
Namespace for GeographicLib.