1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Determine latitude angle phi-2.
//!
//! Inputs:
//! ts = exp(-psi) where psi is the isometric latitude (dimensionless)
//! e = eccentricity of the ellipsoid (dimensionless)
//! Output:
//! phi = geographic latitude (radians)
//! Here isometric latitude is defined by
//! psi = log( tan(pi/4 + phi/2) *
//! ( (1 - e*sin(phi)) / (1 + e*sin(phi)) )^(e/2) )
//! = asinh(tan(phi)) - e * atanh(e * sin(phi))
//! This routine inverts this relation using the iterative scheme given
//! by Snyder (1987), Eqs. (7-9) - (7-11)
//!
use ;
use crate;
const PHI2_NITER: i32 = 15;
pub