Sha256: 3e6c4ff087b6ec44309e6ad2d0cce9e6d04e75da68dce483abb7b6d9bc65afde
Contents?: true
Size: 823 Bytes
Versions: 1
Compression:
Stored size: 823 Bytes
Contents
import "../math/trigonometry"; import "geo"; import "mercator"; function d3_geo_transverseMercator(λ, φ) { return [Math.log(Math.tan(π / 4 + φ / 2)), -λ]; } d3_geo_transverseMercator.invert = function(x, y) { return [-y, 2 * Math.atan(Math.exp(x)) - halfπ]; }; (d3.geo.transverseMercator = function() { var projection = d3_geo_mercatorProjection(d3_geo_transverseMercator), center = projection.center, rotate = projection.rotate; projection.center = function(_) { return _ ? center([-_[1], _[0]]) : ((_ = center()), [_[1], -_[0]]); }; projection.rotate = function(_) { return _ ? rotate([_[0], _[1], _.length > 2 ? _[2] + 90 : 90]) : ((_ = rotate()), [_[0], _[1], _[2] - 90]); }; return rotate([0, 0, 90]); }).raw = d3_geo_transverseMercator;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mdarray-sol-0.1.0-java | node_modules/dc/node_modules/d3/src/geo/transverse-mercator.js |