lerp method

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

Implementation

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