Interpolate between min and max with the amount of a using a linear interpolation. The computation is equivalent to the GLSL function mix.
min
max
a
double mix(double min, double max, double a) => min + a * (max - min);