Normalize extension
Extension on num to provide common numeric utilities, including temperature conversions and normalization.
- on
Methods
-
celsiusToFahrenheit(
) → double - Converts Celsius to Fahrenheit.
-
fahrenheitToCelsius(
) → double - Converts Fahrenheit to Celsius.
-
normalized(
num selfRangeMin, num selfRangeMax, [num normalizedRangeMin = 0.0, num normalizedRangeMax = 1.0]) → num - Normalizes this number from its own range to a target range.