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
static void DecodeLatLon(const std::string &stra, const std::string &strb, AngleT &lat, AngleT &lon, bool longfirst=false)
An accurate representation of angles.
#define GEOGRAPHICLIB_VOLATILE
static AngleT DecodeAzimuth(const std::string &azistr)
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)
Namespace for GeographicLib.
static std::string AzimuthString(AngleT azi, int prec, bool dms=false, char dmssep='\0')
#define GEOGRAPHICLIB_ANGLE_INSTANTIATE(T)
Exception handling for GeographicLib.
static std::string LatLonString(AngleT lat, AngleT lon, int prec, bool dms=false, char dmssep='\0', bool longfirst=false)
Header for the GeographicLib::AngleT class.
Header for GeographicLib::DMS class.