aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/PJ_omerc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PJ_omerc.c b/src/PJ_omerc.c
index f0a660bd..6abd2d33 100644
--- a/src/PJ_omerc.c
+++ b/src/PJ_omerc.c
@@ -219,7 +219,7 @@ PJ *PROJECTION(omerc) {
if (no_off)
Q->u_0 = 0;
else {
- Q->u_0 = fabs(Q->ArB * atan2(sqrt(D * D - 1.), cos(alpha_c)));
+ Q->u_0 = fabs(Q->ArB * atan(sqrt(D * D - 1.) / cos(alpha_c)));
if (P->phi0 < 0.)
Q->u_0 = - Q->u_0;
}