MCPcopy Create free account
hub / github.com/breck7/scroll / acos

Function acos

external/.d3.js:17486–17488  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

17484const tau = 2 * pi;
17485
17486function acos(x) {
17487 return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
17488}
17489
17490function asin(x) {
17491 return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);

Callers 1

arcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected