lerp

fun lerp(first: Double, second: Double, fraction: Float): Double
fun lerp(first: Float, second: Float, fraction: Float): Float

Interpolates between two values.

Parameters

first

value

second

value

fraction

of the way between them


fun <T : Units> lerp(first: Measure<T>, second: Measure<T>, fraction: Float): Measure<T>

Interpolates between two Measure.

Parameters

first

value

second

value

fraction

of the way between them