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)
57#if defined(_MSC_VER) && defined(GEOGRAPHICLIB_SHARED_LIB) && \
58 GEOGRAPHICLIB_SHARED_LIB
59# if GEOGRAPHICLIB_SHARED_LIB > 1
60# error GEOGRAPHICLIB_SHARED_LIB must be 0 or 1
61# elif defined(GeographicLib_SHARED_EXPORTS)
62# define GEOGRAPHICLIB_EXPORT __declspec(dllexport)
64# define GEOGRAPHICLIB_EXPORT __declspec(dllimport)
67# define GEOGRAPHICLIB_EXPORT
75# define GEOGRAPHICLIB_DEPRECATED(msg) __attribute__((deprecated(msg)))
77# define GEOGRAPHICLIB_DEPRECATED(msg) __attribute__((deprecated))
79#elif defined(_MSC_VER) && _MSC_VER >= 1300
80# define GEOGRAPHICLIB_DEPRECATED(msg) __declspec(deprecated(msg))
82# define GEOGRAPHICLIB_DEPRECATED(msg)
135 template<
typename T = real>
static T
WGS84_a()
136 {
return 6378137 * meter<T>(); }
141 template<
typename T = real>
static T
WGS84_f() {
145 return 1 / ( T(298257223563LL) / 1000000000 );
153 {
return T(3986004) * 100000000 + 41800000; }
160 {
return 7292115 / (T(1000000) * 100000); }
165 template<
typename T = real>
static T
GRS80_a()
166 {
return 6378137 * meter<T>(); }
173 {
return T(3986005) * 100000000; }
187 {
return 7292115 / (T(1000000) * 100000); }
194 {
return T(108263) / 100000000; }
199 template<
typename T = real>
static T
UTM_k0()
200 {
return T(9996) / 10000; }
205 template<
typename T = real>
static T
UPS_k0()
206 {
return T(994) / 1000; }
219 template<
typename T = real>
static T
meter() {
return T(1); }
224 {
return 1000 * meter<real>(); }
230 {
return 1852 * meter<real>(); }
240 {
return meter<T>() * meter<T>(); }
245 {
return 10000 * square_meter<real>(); }
250 {
return kilometer() * kilometer(); }
255 {
return nauticalmile() * nauticalmile(); }
265 {
return real(254 * 12) / 10000 * meter<real>(); }
303 {
return real(1200) / 3937 * meter<real>(); }
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Header for GeographicLib::Math class.
Constants needed by GeographicLib
static Math::real arcsecond()
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 Math::real nauticalmile()
Exception handling for GeographicLib.
GeographicErr(const std::string &msg)
Namespace for GeographicLib.