10 #if !defined(GEOGRAPHICLIB_ELLIPTICFUNCTION_HPP)
11 #define GEOGRAPHICLIB_ELLIPTICFUNCTION_HPP 1
15 namespace GeographicLib {
65 static const real tol_;
66 static const real tolRF_;
67 static const real tolRD_;
68 static const real tolRG0_;
69 static const real tolJAC_;
71 real _k2, _kp2, _alpha2, _alphap2, _eps;
73 mutable real _Kc, _Ec, _Dc, _Pic, _Gc, _Hc;
74 bool Init()
const throw();
125 void Reset(real k2 = 0, real alpha2 = 0) throw()
126 { Reset(k2, alpha2, 1 - k2, 1 - alpha2); }
189 Math::real m1()
const throw() {
return _kp2; }
598 {
return std::sqrt(_k2 < 0 ? 1 - _k2 * sn*sn : _kp2 + _k2 * cn*cn); }
709 #endif // GEOGRAPHICLIB_ELLIPTICFUNCTION_HPP
#define GEOGRAPHICLIB_EXPORT
void Reset(real k2=0, real alpha2=0)
GeographicLib::Math::real real
Math::real alphap2() const
Elliptic integrals and functions.
Math::real Delta(real sn, real cn) const
Math::real alpha2() const
Header for GeographicLib::Constants class.