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

Function d3_sgn

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

Source from the content-addressed store, hash-verified

1282 }
1283 var π = Math.PI, ε = 1e-6, d3_radians = π / 180, d3_degrees = 180 / π;
1284 function d3_sgn(x) {
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 }

Callers 2

d3_geo_conicConformalFunction · 0.85
d3_geo_conicEquidistantFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected