lerp

Computes the linear interpolation between two values.

Inputs

first

The initial value.

second

The final value.

fraction

The interpolation fraction. A value of 0 returns the initial value, a value of 1 returns the final value, while any other value returns the relative position on the line joining the two values.

Output

interpolated

The interpolated value.