10#if !defined(GEOGRAPHICLIB_GARS_HPP)
11#define GEOGRAPHICLIB_GARS_HPP 1
17# pragma warning (push)
18# pragma warning (disable: 4251)
41 static const char*
const digits_;
42 static const char*
const letters_;
43#if GEOGRAPHICLIB_PRECISION == 4
58 baselen_ = lonlen_ + latlen_,
62 m_ = mult1_ * mult2_ * mult3_,
64 maxlen_ = baselen_ + maxprec_
65#if GEOGRAPHICLIB_PRECISION == 4
92 static void Forward(real lat, real lon,
int prec, std::string& gars);
114 static void Reverse(
const std::string& gars, real& lat, real& lon,
115 int& prec,
bool centerp =
true);
126 return 1/
real(prec <= 0 ? mult1_ : (prec == 1 ? mult1_ * mult2_ :
127 mult1_ * mult2_ * mult3_));
140 using std::fabs; res = fabs(res);
141 for (
int prec = 0; prec < maxprec_; ++prec)
142 if (Resolution(prec) <= res)
152# pragma warning (pop)
Header for GeographicLib::Constants class.
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Conversions for the Global Area Reference System (GARS)
static Math::real Resolution(int prec)
static int Precision(real res)
@ hd
degrees per half turn
@ qd
degrees per quarter turn
Namespace for GeographicLib.