10 #if !defined(GEOGRAPHICLIB_POLARSTEREOGRAPHIC_HPP)
11 #define GEOGRAPHICLIB_POLARSTEREOGRAPHIC_HPP 1
15 namespace GeographicLib {
36 real _a, _f, _e2, _e, _e2m, _Cx, _c;
38 static const real tol_;
39 static const real overflow_;
40 static const int numit_ = 5;
42 static inline real tanx(real x)
throw() {
45 return x >= 0 ? (!(t < 0) ? t : overflow_) : (!(t >= 0) ? t : -overflow_);
49 inline real eatanhe(real x)
const throw()
50 {
return _f >= 0 ? _e *
Math::atanh(_e * x) : - _e * std::atan(_e * x); }
75 void SetScale(real lat, real k =
real(1));
94 void Forward(
bool northp, real lat, real lon,
95 real& x, real& y, real& gamma, real& k)
const throw();
112 void Reverse(
bool northp, real x, real y,
113 real& lat, real& lon, real& gamma, real& k)
const throw();
119 real& x, real& y)
const throw() {
121 Forward(northp, lat, lon, x, y, gamma, k);
128 real& lat, real& lon)
const throw() {
130 Reverse(northp, x, y, lat, lon, gamma, k);
153 Math::real InverseFlattening()
const throw() {
return 1/_f; }
174 #endif // GEOGRAPHICLIB_POLARSTEREOGRAPHIC_HPP
void Reverse(bool northp, real x, real y, real &lat, real &lon) const
#define GEOGRAPHICLIB_EXPORT
Math::real MajorRadius() const
GeographicLib::Math::real real
Math::real Flattening() const
Math::real CentralScale() const
static const PolarStereographic UPS
void Forward(bool northp, real lat, real lon, real &x, real &y) const
Polar stereographic projection.
Header for GeographicLib::Constants class.