getSlope function

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

Implementation

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