Sha256: 320ae58782c4c0fa46054b3dd7fcbbb8cf5cea64589bdb21ecb10b2ef5fd5208

Contents?: true

Size: 321 Bytes

Versions: 4

Compression:

Stored size: 321 Bytes

Contents

function kavrayskiy7(λ, φ) {
  return [
    3 * λ / (2 * π) * Math.sqrt(π * π / 3 - φ * φ),
    φ
  ];
}

kavrayskiy7.invert = function(x, y) {
  return [
    2 / 3 * π * x / Math.sqrt(π * π / 3 - y * y),
    y
  ];
};

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

Version data entries

4 entries across 4 versions & 1 rubygems

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