27 T AngleT<T>::rnd(T x) {
30 static const T z = 1/T(1024);
34 y = w > 0 ? z - w : y;
35 return copysign(y, x);
55 + strb +
" interpreted as "
67 +
" has a latitude hemisphere, N/S");
73 int prec,
bool dms,
char dmssep,
bool longfirst) {
82 (longfirst ? lonstr : latstr) +
" " + (longfirst ? latstr : lonstr);
91#define GEOGRAPHICLIB_ANGLE_INSTANTIATE(T) \
92 template T GEOGRAPHICLIB_EXPORT AngleT<T>::rnd(T); \
93 template void GEOGRAPHICLIB_EXPORT AngleT<T>::DecodeLatLon \
94 (const string& , const string&,AngleT<T>&, AngleT<T>&, bool); \
95 template AngleT<T> GEOGRAPHICLIB_EXPORT AngleT<T>::DecodeAzimuth \
97 template string GEOGRAPHICLIB_EXPORT AngleT<T>::LatLonString \
98 (AngleT<T>, AngleT<T>, int, bool, char, bool); \
99 template string GEOGRAPHICLIB_EXPORT AngleT<T>::AzimuthString \
100 (AngleT<T>, int, bool, char);
105#if GEOGRAPHICLIB_HAVE_LONG_DOUBLE
109#if GEOGRAPHICLIB_PRECISION > 3
#define GEOGRAPHICLIB_ANGLE_INSTANTIATE(T)
Header for the GeographicLib::AngleT class.
Header for GeographicLib::DMS class.
#define GEOGRAPHICLIB_VOLATILE
static void DecodeLatLon(const std::string &stra, const std::string &strb, AngleT &lat, AngleT &lon, bool longfirst=false)
static std::string LatLonString(AngleT lat, AngleT lon, int prec, bool dms=false, char dmssep='\0', bool longfirst=false)
static AngleT DecodeAzimuth(const std::string &azistr)
static std::string AzimuthString(AngleT azi, int prec, bool dms=false, char dmssep='\0')
static std::string Encode(real angle, component trailing, unsigned prec, flag ind=NONE, char dmssep=char(0))
static Math::real Decode(const std::string &dms, flag &ind)
Exception handling for GeographicLib.
Namespace for GeographicLib.