defaultLerp<T> static method

T defaultLerp<T>(
  1. T a,
  2. T b,
  3. double t
)

Implementation

static T defaultLerp<T>(T a, T b, double t) {
  return ((a as dynamic) + ((b as dynamic) - (a as dynamic)) * t) as T;
}