Core Function Lerp
From Sputnik Wiki
(Difference between revisions)
m (1 revision) |
m (1 revision) |
Latest revision as of 12:37, 14 June 2015
Lerp( <from>, <to>, <amount> )
Contents |
Description
Interpolates between two values using a linear function by a given amount.
Parameters
from
Value to interpolate from.
to
Value to interpolate to.
amount
Interpolation amount.
Return Value
The result of linear interpolation of values based on the amount.
Example
say Lerp(100, 200, 30); // 3100