mix function

double mix (double min, double max, double a)

Interpolate between min and max with the amount of a using a linear interpolation. The computation is equivalent to the GLSL function mix.

Implementation

double mix(double min, double max, double a) => min + a * (max - min);