linear_interpolate

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.

clamp_negative

If true then the initial value will be returned whenever the fraction input is less than 0.

clamp_above_one

If true then the final value will be returned whenever the fraction input is greater than 1.

Output

interpolated

The interpolated value.