Skip to content

Commit

Permalink
fix stereographicRaw.invert
Browse files Browse the repository at this point in the history
Simple test:
```
    var point = [ 360 * Math.random() - 180, 180 * Math.random() - 90 ],
        stereo = d3.geoStereographic();
    console.log(point + " = " + stereo.invert(stereo(point)));
```
  • Loading branch information
Fil committed Aug 15, 2016
1 parent 7fc0682 commit e5f32d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/projection/stereographic.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function stereographicRaw(x, y) {
}

stereographicRaw.invert = azimuthalInvert(function(z) {
return 2 + atan(z);
return 2 * atan(z);
});

export default function() {
Expand Down

0 comments on commit e5f32d4

Please sign in to comment.