lerp

fun lerp(start: Double, stop: Double, fraction: Double): Double

Linearly interpolates between start and stop by fraction.

The fraction is not clamped: values outside 0.0..1.0 extrapolate beyond the endpoints. A fraction of 0.0 returns start and 1.0 returns stop.


fun lerp(start: Float, stop: Float, fraction: Float): Float

Linearly interpolates between start and stop by fraction.

The fraction is not clamped: values outside 0f..1f extrapolate beyond the endpoints. A fraction of 0f returns start and 1f returns stop.