mix function Null safety
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);