progress method
Returns the progress of the current value between min and max.
/!\ May return < 0 or > 1 values, use progressAndClamp if you want to limit the output.
Eg: 5.progress(0, 10) => 0.5
Eg: -1.progress(0, 5) => -0.2
Implementation
double progress(num min, num max) {
return (this - min) / (max - min);
}