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

Function sign

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

Source from the content-addressed store, hash-verified

19128}
19129
19130function sign(x) {
19131 return x < 0 ? -1 : 1;
19132}
19133
19134// Calculate the slopes of the tangents (Hermite-type interpolation) based on
19135// the following paper: Steffen, M. 1990. A Simple Method for Monotonic

Callers 1

slope3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected