Lerp
7/14/25Less than 1 minute
Mathf.Lerp(number a, number b, number t)
Linearly interpolates between a and b by t.
Parameters:
| Name | Type | Description |
|---|---|---|
| a | number | The start value. |
| b | number | The end value. |
| t | number | The interpolation value between the two floats. |
Returns:
| type | Description |
|---|---|
| number | The 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)
