lerp method

double lerp(
  1. double other,
  2. double t
)

Linearly interpolates between two doubles.

Implementation

double lerp(double other, double t) {
  return this + (other - this) * t;
}