v0.13.6

math.normalize

functionimplementedavailable in: camelot

Returns the relative position of a value within a range, where the minimum maps to 0 and the maximum maps to 1.

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

Parameters

nametypedescription
valuenumberThe value to normalize.
minimumnumberThe value that maps to 0.
maximumnumberThe value that maps to 1.

Returns

normalizedValue · number · The normalized value. Values outside the input range produce results outside [0, 1].

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 ↗.