Sha256: 48c28d83b49eb41c264d3a311c5644e9320d7490409700393546c4a90bc794fa

Contents?: true

Size: 307 Bytes

Versions: 4

Compression:

Stored size: 307 Bytes

Contents

import "projection";

function miller(λ, φ) {
  return [
    λ,
    1.25 * Math.log(Math.tan(π / 4 + .4 * φ))
  ];
}

miller.invert = function(x, y) {
  return [
    x,
    2.5 * Math.atan(Math.exp(.8 * y)) - .625 * π
  ];
};

(d3.geo.miller = function() { return projection(miller); }).raw = miller;

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
d3js-plugins-rails-0.0.8 vendor/assets/javascripts/d3/plugins/geo/projection/miller.js
d3js-plugins-rails-0.0.7 vendor/assets/javascripts/d3/plugins/geo/projection/miller.js
d3js-plugins-rails-0.0.6 vendor/assets/javascripts/d3/plugins/geo/projection/miller.js
d3js-plugins-rails-0.0.5 vendor/assets/javascripts/d3/plugins/geo/projection/miller.js