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

Function d3_acos

explainshell/web/static/js/d3.v3.js:1287–1289  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1285 return x > 0 ? 1 : x < 0 ? -1 : 0;
1286 }
1287 function d3_acos(x) {
1288 return Math.acos(Math.max(-1, Math.min(1, x)));
1289 }
1290 function d3_asin(x) {
1291 return x > 1 ? π / 2 : x < -1 ? -π / 2 : Math.asin(x);
1292 }

Callers 1

d3_geo_circleAngleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected