aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PJ_hammer.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/PJ_hammer.c b/src/PJ_hammer.c
index fb5f3de3..f85d8fa8 100644
--- a/src/PJ_hammer.c
+++ b/src/PJ_hammer.c
@@ -15,16 +15,16 @@ FORWARD(s_forward); /* spheroid */
return (xy);
}
INVERSE(s_inverse); /* spheroid */
- double z;
+ double z;
z = sqrt(1. - 0.25*P->w*P->w*xy.x*xy.x - 0.25*xy.y*xy.y);
if (fabs(2.*z*z-1.) < EPS) {
- lp.lam = HUGE_VAL;
- lp.phi = HUGE_VAL;
- pj_errno = -14;
+ lp.lam = HUGE_VAL;
+ lp.phi = HUGE_VAL;
+ pj_errno = -14;
} else {
- lp.lam = aatan2(P->w * xy.x * z,2. * z * z - 1)/P->w;
- lp.phi = aasin(P->ctx,z * xy.y);
- }
+ lp.lam = aatan2(P->w * xy.x * z,2. * z * z - 1)/P->w;
+ p.phi = aasin(P->ctx,z * xy.y);
+ }
return (lp);
}
FREEUP; if (P) pj_dalloc(P); }