MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / base3

Function base3

src/Components/WorldMap/display.js:76–80  ·  view source on GitHub ↗
(t, p1, p2, p3, p4)

Source from the content-addressed store, hash-verified

74 return 0;
75 }
76 const base3 = (t, p1, p2, p3, p4) => {
77 const t1 = -3 * p1 + 9 * p2 - 9 * p3 + 3 * p4,
78 t2 = t * t1 + 6 * p1 - 12 * p2 + 6 * p3;
79 return t * t2 - 3 * p1 + 3 * p2;
80 };
81 t = t > 1 ? 1 : t < 0 ? 0 : t;
82 const t2 = t / 2;
83 const Tvalues = [-.1252, .1252, -.3678, .3678, -.5873, .5873, -.7699, .7699, -.9041, .9041, -.9816, .9816];

Callers 1

cubicBezierLengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected