math. remap
functionimplementedavailable in: camelot
Maps a value from one range to the corresponding position in another range.
function math.remap( value: number, sourceMinimum: number, sourceMaximum: number, destinationMinimum: number, destinationMaximum: number): numberParameters
| name | type | description |
|---|---|---|
value | number | The value to map. |
sourceMinimum | number | The lower endpoint of the source range. |
sourceMaximum | number | The upper endpoint of the source range. |
destinationMinimum | number | The lower endpoint of the destination range. |
destinationMaximum | number | The 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 ↗.