linearInterpolate method
Interpolates two values before
, after
linearly at the position
atPoint
which must be in 0, 1
and returns the result.
Implementation
static double linearInterpolate(double before, double after, double atPoint) {
return before + (after - before) * atPoint;
}