lerp

inline fun Float.Companion.lerp(a: Float, b: Float, t: Float): Float

Returns a linearly interpolated value between a and b.

Parameters

a

Source value.

b

Destination value.

t

Interpolator value with an expected range of 0..1.