inverseLerp

fun inverseLerp(startValue: Number, endValue: Number, q: Number): Double

Return where within interpolation range 0, 1 q is between startValue and endValue.

Return

Interpolant in range 0, 1.

Parameters

startValue

Lower part of interpolation range.

endValue

Upper part of interpolation range.

q

Query.


Return where within interpolation range 0, 1 q is between the start and end pair.

Return

Interpolant in range 0, 1.

Parameters

q

Query.