interpolate<T> function

T interpolate<T>(
  1. dynamic a,
  2. dynamic b,
  3. double alpha
)

Implementation

T interpolate<T>(dynamic a, dynamic b, double alpha) {
  return (a * (1 - alpha) + b * alpha) as T;
}