DoubleExtension extension
- on
Methods
-
progress(
num min, num max) → double -
Available on double, provided by the DoubleExtension extension
Returns the progress of the current value betweenminandmax. /!\ 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 -
progress2(
num min, num max) → double -
Available on double, provided by the DoubleExtension extension
-
progressAndClamp(
num min, double max, double clamp) → double -
Available on double, provided by the DoubleExtension extension
Returns the progress of the current value betweenminandmax. The minimum value will always be 0 and the maximum value will always beclamp.