cubicBezier function

dynamic cubicBezier(
  1. dynamic t,
  2. dynamic p0,
  3. dynamic p1,
  4. dynamic p2,
  5. dynamic p3,
)

Implementation

cubicBezier(t, p0, p1, p2, p3) {
  return cubicBezierP0(t, p0) +
      cubicBezierP1(t, p1) +
      cubicBezierP2(t, p2) +
      cubicBezierP3(t, p3);
}