aboutsummaryrefslogtreecommitdiff
path: root/src/projections/boggs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/projections/boggs.cpp')
-rw-r--r--src/projections/boggs.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/projections/boggs.cpp b/src/projections/boggs.cpp
index e7278904..1900879b 100644
--- a/src/projections/boggs.cpp
+++ b/src/projections/boggs.cpp
@@ -14,25 +14,25 @@ PROJ_HEAD(boggs, "Boggs Eumorphic") "\n\tPCyl, no inv, Sph";
static PJ_XY boggs_s_forward (PJ_LP lp, PJ *P) { /* Spheroidal, forward */
PJ_XY xy = {0.0,0.0};
- double theta, th1, c;
- int i;
- (void) P;
-
- theta = lp.phi;
- if (fabs(fabs(lp.phi) - M_HALFPI) < EPS)
- xy.x = 0.;
- else {
- c = sin(theta) * M_PI;
- for (i = NITER; i; --i) {
- theta -= th1 = (theta + sin(theta) - c) /
- (1. + cos(theta));
- if (fabs(th1) < EPS) break;
- }
- theta *= 0.5;
- xy.x = FXC * lp.lam / (1. / cos(lp.phi) + FXC2 / cos(theta));
- }
- xy.y = FYC * (lp.phi + M_SQRT2 * sin(theta));
- return (xy);
+ double theta, th1, c;
+ int i;
+ (void) P;
+
+ theta = lp.phi;
+ if (fabs(fabs(lp.phi) - M_HALFPI) < EPS)
+ xy.x = 0.;
+ else {
+ c = sin(theta) * M_PI;
+ for (i = NITER; i; --i) {
+ th1 = (theta + sin(theta) - c) / (1. + cos(theta));
+ theta -= th1;
+ if (fabs(th1) < EPS) break;
+ }
+ theta *= 0.5;
+ xy.x = FXC * lp.lam / (1. / cos(lp.phi) + FXC2 / cos(theta));
+ }
+ xy.y = FYC * (lp.phi + M_SQRT2 * sin(theta));
+ return (xy);
}