MCPcopy
hub / github.com/animatedjs/animated / calcBezier

Function calcBezier

src/bezier.js:24–24  ·  view source on GitHub ↗
(aT, aA1, aA2)

Source from the content-addressed store, hash-verified

22
23 // Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.
24 function calcBezier (aT, aA1, aA2) { return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT; }
25
26 // Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2.
27 function getSlope (aT, aA1, aA2) { return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1); }

Callers 3

binarySubdivideFunction · 0.85
newtonRaphsonIterateFunction · 0.85
bezier.jsFile · 0.85

Calls 3

AFunction · 0.85
BFunction · 0.85
CFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…