10 #if !defined(GEOGRAPHICLIB_GARS_HPP) 11 #define GEOGRAPHICLIB_GARS_HPP 1 17 # pragma warning (push) 18 # pragma warning (disable: 4251) 50 baselen_ = lonlen_ + latlen_,
54 m_ = mult1_ * mult2_ * mult3_,
56 maxlen_ = baselen_ + maxprec_,
80 static void Forward(real
lat, real
lon,
int prec, std::string& gars);
102 static void Reverse(
const std::string& gars, real&
lat, real&
lon,
103 int& prec,
bool centerp =
true);
114 return 1/
real(prec <= 0 ? mult1_ : (prec == 1 ? mult1_ * mult2_ :
115 mult1_ * mult2_ * mult3_));
129 for (
int prec = 0; prec < maxprec_; ++prec)
130 if (Resolution(prec) <= res)
139 #if defined(_MSC_VER) 140 # pragma warning (pop) 143 #endif // GEOGRAPHICLIB_GARS_HPP
#define GEOGRAPHICLIB_EXPORT
Conversions for the Global Area Reference System (GARS)
static Math::real Resolution(int prec)
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Namespace for GeographicLib.
static const char *const letters_
static const char *const digits_
Header for GeographicLib::Constants class.
static int Precision(real res)