diff options
| author | Charles Karney <charles.karney@sri.com> | 2020-10-26 14:05:06 -0400 |
|---|---|---|
| committer | Charles Karney <charles.karney@sri.com> | 2020-10-26 14:05:06 -0400 |
| commit | 1b484f853061e8577d95205f27e1ebbdbf80ec47 (patch) | |
| tree | eac66398f7e2c41ca6be9b5313f463dd727dd44e /src/tsfn.cpp | |
| parent | b3a20c5b9c6efbeb0d6f528aad1d4e6bb4332bfa (diff) | |
| download | PROJ-1b484f853061e8577d95205f27e1ebbdbf80ec47.tar.gz PROJ-1b484f853061e8577d95205f27e1ebbdbf80ec47.zip | |
Address comments by @schwehr
Diffstat (limited to 'src/tsfn.cpp')
| -rw-r--r-- | src/tsfn.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tsfn.cpp b/src/tsfn.cpp index fe8f29ed..a0960a66 100644 --- a/src/tsfn.cpp +++ b/src/tsfn.cpp @@ -21,7 +21,7 @@ double pj_tsfn(double phi, double sinphi, double e) { // exp(-asinh(tan(phi))) = 1 / (tan(phi) + sec(phi)) // = cos(phi) / (1 + sin(phi)) good for phi > 0 // = (1 - sin(phi)) / cos(phi) good for phi < 0 - return exp(e * atanh(e * sinphi)) * + return exp(e * atanh(e * sinphi)) * ( sinphi > 0 ? cosphi / (1 + sinphi) : (1 - sinphi) / cosphi ); |
