~/forever/addon-api/function/math.normalize
math.normalize
documented function · LuaMathExtensions
math.normalize(value, minimum, maximum) : normalizedValueReturns the relative position of a value within a range, where the minimum maps to 0 and the maximum maps to 1.
──ARGUMENTS
- value
- number (The value to normalize.)
- minimum
- number (The value that maps to 0.)
- maximum
- number (The value that maps to 1.)
──RETURNS
- normalizedValue
- number (The normalized value. Values outside the input range produce results outside [0, 1].)
──DETAILS
- Secret Arguments
- AllowedWhenUntainted
──VERSION HISTORY
Present since at least 1.60.1.70707, the first build we track.