lerp method

double lerp(
  1. double begin,
  2. double end,
  3. double progress
)

Implementation

double lerp(double begin, double end, double progress) {
  return begin + (end - begin) * progress;
}