Skip to content
Browse files

Minor optimisation.

  • Loading branch information...
1 parent c63b4d6 commit 8698a7b7bc1897e34ca3f38fbc12798ea49bb6fd @jasondavies jasondavies committed Mar 27, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 geo/projection/gall-stereographic.js
View
6 geo/projection/gall-stereographic.js
@@ -2,15 +2,15 @@ import "projection";
function gallStereographic(λ, φ) {
return [
- λ / Math.SQRT2,
- (1 + Math.SQRT2 / 2) * Math.tan/ 2)
+ λ * Math.SQRT1_2,
+ (1 + Math.SQRT1_2) * Math.tan/ 2)
];
}
gallStereographic.invert = function(x, y) {
return [
x * Math.SQRT2,
- Math.atan(y / (1 + Math.SQRT2 / 2)) * 2
+ Math.atan(y / (1 + Math.SQRT1_2)) * 2
];
};

0 comments on commit 8698a7b

Please sign in to comment.
Something went wrong with that request. Please try again.