double lerp(double start, double stop, double fraction) { return start * (1 - fraction) + stop * fraction; }