Documentation

Linear Interpolate - Open Dev Kit Documentation

Open Dev Kit Documentation :: General :: Math :: Linear Interpolate

Root.Math.Lerp(
  Value 1 Double,
  Value 2 Double,
  Factor Double
) Double
Returns Value 1 if Factor is 0, Value 2 if Factor is 1 and the average of Value 1 and 2 if Factor is 0.5, with everything in between using linear interpolation

Parameters

Value 1 Double
The first value
Value 2 Double
The second value
Factor Double
The factor of which value is returned (usually between 0.0 and 1.0)

Return Value

Double

If you think anything is missing, please feel free to: submit documentation feedback on this page