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

Function d3_geo_cartesian

explainshell/web/static/js/d3.v3.js:2220–2223  ·  view source on GitHub ↗
(spherical)

Source from the content-addressed store, hash-verified

2218 d3_geo_centroid.point = d3_geo_centroidPoint;
2219 }
2220 function d3_geo_cartesian(spherical) {
2221 var λ = spherical[0], φ = spherical[1], cosφ = Math.cos(φ);
2222 return [ cosφ * Math.cos(λ), cosφ * Math.sin(λ), Math.sin(φ) ];
2223 }
2224 function d3_geo_cartesianDot(a, b) {
2225 return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
2226 }

Callers 3

intersectFunction · 0.85
linePointFunction · 0.85
d3_geo_circleAngleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected