>wowhelm_
~/forever/addon-api/function/math.wrap

math.wrap

documented function · LuaMathExtensions
math.wrap(value, minimum, maximum) : wrapped

Wraps a value into the half-open range [minimum, maximum).

──ARGUMENTS
value
number (The value to wrap.)
minimum
number (The inclusive lower bound of the range.)
maximum
number (The exclusive upper bound of the range.)
──RETURNS
wrapped
number (The wrapped value, greater than or equal to minimum and less than maximum. If minimum equals maximum, returns minimum.)
──DETAILS
Secret Arguments
AllowedWhenUntainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.