Part of StarfallEx namespace
๐ External
math.lerp(t, from, to)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Performs a linear interpolation from the start number to the end number.
Parameters
| Name | Type | Description |
|---|---|---|
t | number | The fraction for finding the result. This number is clamped between 0 and 1 |
from | number | The starting number. The result will be equal to this if value t is 0 |
to | number | The ending number. The result will be equal to this if value t is 1 |
Returns
| Type | Description |
|---|---|
number | The result of the linear interpolation, (1 - t) * from + t * to |
Examples
No examples available.
Used In
No usages found in the codebase.