Linearly interpolates between two doubles.
double lerp(double other, double t) { return this + (other - this) * t; }