lerp<T extends num> static method

num lerp<T extends num>(
  1. T x,
  2. T y,
  3. T t
)

Implementation

static num lerp<T extends num>(T x, T y, T t) {
  return (1 - t) * x + t * y;
}