Sha256: 4df43e4488cace8e79a7a32a19f35f9dba5f95089d43fcfcb2e1709fbc8e46bd

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

function times(λ, φ) {
  var t = Math.tan(φ / 2),
      s = Math.sin(π / 4 * t);
  return [
    λ * (.74482 - .34588 * s * s),
    1.70711 * t
  ];
}

times.invert = function(x, y) {
  var t = y / 1.70711,
      s = Math.sin(π / 4 * t);
  return [
    x / (.74482 - .34588 * s * s),
    2 * Math.atan(t)
  ];
};

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

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/times.js
d3js-plugins-rails-0.0.3 vendor/assets/javascripts/d3/plugins/geo/projection/times.js