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

Function d3_geo_spherical

explainshell/web/static/js/d3.v3.js:2247–2249  ·  view source on GitHub ↗
(cartesian)

Source from the content-addressed store, hash-verified

2245 return true;
2246 }
2247 function d3_geo_spherical(cartesian) {
2248 return [ Math.atan2(cartesian[1], cartesian[0]), Math.asin(Math.max(-1, Math.min(1, cartesian[2]))) ];
2249 }
2250 function d3_geo_sphericalEqual(a, b) {
2251 return Math.abs(a[0] - b[0]) < ε && Math.abs(a[1] - b[1]) < ε;
2252 }

Callers 2

intersectFunction · 0.85
d3_geo_circleInterpolateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected