Interpolates between two doubles.
double lerpDouble(double a, double b, double t) => a + (b - a) * t;