lerp

open fun lerp(a: Float, b: Float, t: Float): Float

Linearly interpolates between a and b by a ratio.

Return

interpolated value between the two floats

Parameters

a

the beginning value

b

the ending value

t

ratio between the two floats