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);
}