MCPcopy Create free account
hub / github.com/OSGeo/PROJ / pj_rectifying_radius

Function pj_rectifying_radius

src/latitudes.cpp:415–420  ·  view source on GitHub ↗

Compute the rectifying radius = quarter meridian / (pi/2 * a). The accuracy of this series is the same as those used for the computation of the auxiliary latitudes.

Source from the content-addressed store, hash-verified

413// of this series is the same as those used for the computation of the
414// auxiliary latitudes.
415double pj_rectifying_radius(double n) {
416 // Expansion of (quarter meridian) / ((a+b)/2 * pi/2) as series in n^2;
417 // these coefficients are ( (2*k - 3)!! / (2*k)!! )^2 for k = 0..3
418 static const double coeff_rad[] = {1, 1.0 / 4, 1.0 / 64, 1.0 / 256};
419 return pj_polyval(n * n, coeff_rad, 3) / (1 + n);
420}

Callers 2

pj_enfnFunction · 0.85
setup_exactFunction · 0.85

Calls 1

pj_polyvalFunction · 0.85

Tested by

no test coverage detected