v0.13.6

math.wrap

functionimplementedavailable in: camelot

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

signaturewowlua
function math.wrap(    value: number,    minimum: number,    maximum: number): number

Parameters

nametypedescription
valuenumberThe value to wrap.
minimumnumberThe inclusive lower bound of the range.
maximumnumberThe 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.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (LuaMathExtensions system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.