MCPcopy Create free account
hub / github.com/idank/explainshell / projection

Function projection

explainshell/web/static/js/d3.v3.js:2887–2890  ·  view source on GitHub ↗
(point)

Source from the content-addressed store, hash-verified

2885 return [ x[0] * k + δx, δy - x[1] * k ];
2886 }), k = 150, x = 480, y = 250, λ = 0, φ = 0, δλ = 0, δφ = 0, δγ = 0, δx, δy, preclip = d3_geo_clipAntimeridian, postclip = d3_identity, clipAngle = null, clipExtent = null;
2887 function projection(point) {
2888 point = projectRotate(point[0] * d3_radians, point[1] * d3_radians);
2889 return [ point[0] * k + δx, δy - point[1] * k ];
2890 }
2891 function invert(point) {
2892 point = projectRotate.invert((point[0] - δx) / k, (δy - point[1]) / k);
2893 return point && [ point[0] * d3_degrees, point[1] * d3_degrees ];

Callers 3

albersUsaFunction · 0.85
d3_geo_albersUsaInvertFunction · 0.85
segmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected