interpolateValue<T> function

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

Implementation

T interpolateValue<T>(dynamic a, dynamic b, double alpha) {
  // Useful in mobject to not always use Mobject.interpolate
  return (a * (1 - alpha) + b * alpha) as T;
}