lerp

open fun lerp(start: Double, stop: Double, amount: Double): Double

The linear interpolation function.

Return

start if amount = 0 and stop if amount = 1