v0.13.8

math.remap

functionimplementedavailable in: camelot

Maps a value from one range to the corresponding position in another range.

signaturewowlua
function math.remap(    value: number,    sourceMinimum: number,    sourceMaximum: number,    destinationMinimum: number,    destinationMaximum: number): number

Parameters

nametypedescription
valuenumberThe value to map.
sourceMinimumnumberThe lower endpoint of the source range.
sourceMaximumnumberThe upper endpoint of the source range.
destinationMinimumnumberThe lower endpoint of the destination range.
destinationMaximumnumberThe upper endpoint of the destination range.

Returns

remappedValue · number · The mapped value. Values outside the source range are extrapolated beyond the destination range.

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