Lerp: Difference between revisions
From Onset Developer Wiki
(Created page with "{{Info|Function|Client & Server|1.0.3}} {{FuncDescription|Interpolates between a and b with the parameter t. }} {{FuncSyntax|Lerp(t, a, b)}} {{FuncParameters}} {{FuncParam|...") |
(No difference)
|
Revision as of 20:22, 18 January 2020
Description
Interpolates between a and b with the parameter t.
Syntax
Lerp(t, a, b)
Parameters
- t
The interpolant, normally between 0.0 and 1.0 - a
Interpolate from. - b
Interpolate to.
Return Value
- Returns the interpolated value.
Example
--Will print 3.0
print(Lerp(0.5, 2.0, 4.0))
See also
__EDIT_ME__