Core Function Lerp

From Sputnik Wiki
Jump to: navigation, search
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