Skip to content

Api > Mathf > LerpUnclamped()


Mathf.LerpUnclamped(number a, number b, number t)⚓︎

Linearly interpolates between a and b by t with no limit to t.

Parameters:⚓︎

Name Type Description
a number The start value.
b number The end value.
t number The interpolation between the two floats.

Returns:⚓︎

type Description
number The float value as a result from the linear interpolation.

Usage⚓︎

---@type number
local a;

---@type number
local b;

---@type number
local t;


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