antiLerp

fun antiLerp(value: Double, low: Double, high: Double): Double

Inverse of lerp. Given a value value in the range \(low, high\), returns the interpolation factor \(t\) such that \(\text{lerp}(low, high, t) = value\).

Return

interpolation factor \(t\)

Parameters

value

value in the range \(low, high\)