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)
151 #if defined(_MSC_VER) 152 # pragma warning (pop) 155 #endif // GEOGRAPHICLIB_GARS_HPP
#define GEOGRAPHICLIB_EXPORT
Conversions for the Global Area Reference System (GARS)
GeographicLib::Math::real real
static Math::real Resolution(int prec)
Namespace for GeographicLib.
Header for GeographicLib::Constants class.
static int Precision(real res)