Core Function Lerp
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> Lerp( <from>, <to>, <amount> ) </pre> === Description === Interpolates between two values using a linear function by a given amount. === Parameters === ==== from ==== ...")
Newer edit →
(Created page with "<pre> Lerp( <from>, <to>, <amount> ) </pre> === Description === Interpolates between two values using a linear function by a given amount. === Parameters === ==== from ==== ...")
Newer edit →
Revision as of 08:06, 10 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