v0.13.8

math.lerp

functionimplementedavailable in: camelot

Linearly interpolates between two values.

signaturewowlua
function math.lerp(    startValue: number,    endValue: number,    amount: number): number

Parameters

nametypedescription
startValuenumberThe value returned when the interpolation amount is 0.
endValuenumberThe value returned when the interpolation amount is 1.
amountnumberThe interpolation amount. Values outside [0, 1] extrapolate beyond the two values.

Returns

interpolatedValue · number · The interpolated value.

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