Core Function Lerp

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(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)
 
(One intermediate revision by one user not shown)

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
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox