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
43
44
45
46
47
48
49
//! WGS84 constants and the conformal-latitude helpers shared by both projections.
//!
//! The two geodetic parameters below are the only ones in the crate, each pinned
//! by a unit test. The tau functions are the conformal mapping from Karney,
//! "Transverse Mercator with an accuracy of a few nanometers" (2011), section 3.
//
// This module performs bounded floating-point arithmetic only, which cannot
// side-effect, so `clippy::arithmetic_side_effects` is not denied here. See the
// errors section of the behavioral specification.
/// WGS84 semi-major axis in metres, exact.
pub const A: f64 = 6_378_137.0;
/// WGS84 flattening, exact.
pub const F: f64 = 1.0 / 298.257_223_563;
/// First eccentricity squared, e^2 = f(2 - f).
pub const E2: f64 = F * ;
/// First eccentricity.
pub
/// tau' = tan of the conformal latitude as a function of tau = tan(phi).
pub
/// Inverse of [`taupf`] by Newton's method, following the reference paper.
pub