Linearly interpolates between a and b by t (0..1).
a
b
t
static double lerp(num a, num b, double t) => a + (b - a) * t;