lerp

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

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>(source)

Interpolates between two Measure.

Parameters

first

value

second

value

fraction

of the way between them