Skip to main content

Mathf.Lerp(number a, number b, number t)

Linearly interpolates between a and b by t.

Parameters:

NameTypeDescription
anumberThe start value.
bnumberThe end value.
tnumberThe interpolation value between the two floats.

Returns:

typeDescription
numberThe interpolated float result between the two float values.

Usage

---@type number
local a;

---@type number
local b;

---@type number
local t;


local val0 = Mathf:Lerp(a, b, t)