lerp static method

double lerp(
  1. num a,
  2. num b,
  3. double t
)

Linearly interpolates between a and b by t (0..1).

Implementation

static double lerp(num a, num b, double t) => a + (b - a) * t;