Open Dev Kit Documentation :: General :: Math :: Linear Interpolate
Root.Math.Lerp( Value 1 Double, Value 2 Double, Factor Double ) DoubleReturns 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
If you think anything is missing, please feel free to: submit documentation feedback on this page
