calcBezier function

double calcBezier(
  1. double aT,
  2. double aA1,
  3. double aA2
)

Implementation

double calcBezier(double aT, double aA1, double aA2) {
  return (((1.0 - 3.0 * aA2 + 3.0 * aA1) * aT + (3.0 * aA2 - 6.0 * aA1)) * aT +
          (3.0 * aA1)) *
      aT;
}