13#if !defined(GEOGRAPHICLIB_JACOBICONFORMAL_HPP)
14#define GEOGRAPHICLIB_JACOBICONFORMAL_HPP 1
46 real _a, _b, _c, _ab2, _bc2, _ac2;
48 static void norm(real&
x, real&
y) {
50 real z = hypot(
x,
y);
x /= z;
y /= z;
66 , _ab2((_a - _b) * (_a + _b))
67 , _bc2((_b - _c) * (_b + _c))
68 , _ac2((_a - _c) * (_a + _c))
69 , _ex(_ab2 / _ac2 *
Math::sq(_c / _b), -_ab2 /
Math::sq(_b),
70 _bc2 / _ac2 *
Math::sq(_a / _b),
Math::sq(_a / _b))
71 , _ey(_bc2 / _ac2 *
Math::sq(_a / _b), +_bc2 /
Math::sq(_b),
72 _ab2 / _ac2 *
Math::sq(_c / _b),
Math::sq(_c / _b))
75 if (!(isfinite(_a) && _a >= _b && _b >= _c && _c > 0))
76 throw GeographicErr(
"JacobiConformal: axes are not in order");
79 (
"JacobiConformal: use alternate constructor for sphere");
97 , _ab2(ab * (_a + _b))
98 , _bc2(bc * (_b + _c))
100 , _ex(_ab2 / _ac2 *
Math::sq(_c / _b),
101 -(_a - _b) * (_a + _b) /
Math::sq(_b),
102 _bc2 / _ac2 *
Math::sq(_a / _b),
Math::sq(_a / _b))
103 , _ey(_bc2 / _ac2 *
Math::sq(_a / _b),
104 +(_b - _c) * (_b + _c) /
Math::sq(_b),
105 _ab2 / _ac2 *
Math::sq(_c / _b),
Math::sq(_c / _b))
108 if (!(isfinite(_a) && _a >= _b && _b >= _c && _c > 0 &&
110 throw GeographicErr(
"JacobiConformal: axes are not in order");
111 if (!(ab + bc > 0 && isfinite(_ac2)))
112 throw GeographicErr(
"JacobiConformal: ab + bc must be positive");
126 real somg1 = _b * somg, comg1 = _a * comg; norm(somg1, comg1);
128 * _ex.
Pi(somg1, comg1, _ex.
Delta(somg1, comg1));
155 real sbet1 = _b * sbet, cbet1 = _c * cbet; norm(sbet1, cbet1);
157 * _ey.
Pi(sbet1, cbet1, _ey.
Delta(sbet1, cbet1));
Header for GeographicLib::EllipticFunction class.
Elliptic integrals and functions.
Math::real Delta(real sn, real cn) const
Exception handling for GeographicLib.
Mathematical functions needed by GeographicLib.
static void sincosd(T x, T &sinx, T &cosx)
Namespace for GeographicLib.