Sha256: cc5b9e9490b9f2d0cf37d2fd6bd114a20aa3afb09f57e63a7a3ff66369d5dd29

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
d3js-plugins-rails-0.0.4 vendor/assets/javascripts/d3/plugins/geo/projection/fahey.js
d3js-plugins-rails-0.0.3 vendor/assets/javascripts/d3/plugins/geo/projection/fahey.js