Sha256: a3f17d78fb0d7a42cdd93049ad6a9a4d78e4b429955adb114539c659ad09d408
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
// @import guyou function peirceQuincuncial(λ, φ) { var t = Math.abs(λ) < π / 2, p = guyou(t ? λ : -sgn(λ) * (π - Math.abs(λ)), φ), x = p[0] / Math.SQRT2 - p[1] / Math.SQRT2, y = p[1] / Math.SQRT2 + p[0] / Math.SQRT2; if (t) return [x, y]; var d = 2 * 1.311028777082283, // TODO unobfuscate s = (x > 0) ^ (y > 0) ? -1 : 1; return [s * x - sgn(y) * d, s * y - sgn(x) * d]; } (d3.geo.peirceQuincuncial = function() { return projection(peirceQuincuncial).rotate([-90, -90, 45]).clipAngle(180 - 1e-6); }).raw = peirceQuincuncial;
Version data entries
2 entries across 2 versions & 1 rubygems