Core Function Lerp
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> Lerp( <from>, <to>, <amount> ) </pre> === Description === Interpolates between two values using a linear function by a given amount. === Parameters === ==== from ==== ...") |
m (1 revision) |
Revision as of 21:41, 11 August 2014
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