Linearly interpolate between two numbers.
double lerpDouble(num a, num b, double t) => a + (b - a) * t;