Skip to content

Commit 573181b

Browse files
committed
Minor optimisation.
1 parent b1d078d commit 573181b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

d3.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6343,8 +6343,8 @@
63436343
} else {
63446344
cosdλ = Math.cos( = λ - λ0);
63456345
d = Math.atan2(Math.sqrt((d = cosφ * Math.sin(λ - λ0)) * d + (d = cosφ0 * sinφ - sinφ0 * cosφ * cosdλ) * d), sinφ0 * sinφ + cosφ0 * cosφ * cosdλ);
6346-
s = (d + π + φ0 + φ) / 2;
6347-
area += ( < 0 && > -π || > π ? -4 : 4) * Math.atan(Math.sqrt(Math.abs(Math.tan(s / 2) * Math.tan((s - d) / 2) * Math.tan((s - π / 2 - φ0) / 2) * Math.tan((s - π / 2 - φ) / 2))));
6346+
s = (d + π + φ0 + φ) / 4;
6347+
area += ( < 0 && > -π || > π ? -4 : 4) * Math.atan(Math.sqrt(Math.abs(Math.tan(s) * Math.tan(s - d / 2) * Math.tan(s - π / 4 - φ0 / 2) * Math.tan(s - π / 4 - φ / 2))));
63486348
}
63496349
λ00 = λ0, φ00 = φ0;
63506350
λ0 = λ, φ0 = φ;

0 commit comments

Comments
 (0)