QuadraticBezier function

dynamic QuadraticBezier(
  1. dynamic t,
  2. dynamic p0,
  3. dynamic p1,
  4. dynamic p2,
)

Implementation

QuadraticBezier(t, p0, p1, p2) {
  return QuadraticBezierP0(t, p0) +
      QuadraticBezierP1(t, p1) +
      QuadraticBezierP2(t, p2);
}