Sha256: aa8885b1890fd218487a88b621b132c8e8e715a20442beb72e56647f26fd9d3b
Contents?: true
Size: 406 Bytes
Versions: 4
Compression:
Stored size: 406 Bytes
Contents
import "projection"; function fahey(λ, φ) { var t = Math.tan(φ / 2); return [ λ * faheyK * asqrt(1 - t * t), (1 + faheyK) * t ]; } fahey.invert = function(x, y) { var t = y / (1 + faheyK); return [ x ? x / (faheyK * asqrt(1 - t * t)) : 0, 2 * Math.atan(t) ]; }; var faheyK = Math.cos(35 * radians); (d3.geo.fahey = function() { return projection(fahey); }).raw = fahey;
Version data entries
4 entries across 4 versions & 1 rubygems