lerp function

double lerp(
  1. double a,
  2. double b,
  3. double f
)

Implementation

double lerp(double a, double b, double f) {
  return a + (f * (b - a));
}