Skip to main content

inv_lerp

Function inv_lerp 

Source
pub fn inv_lerp(a: f64, b: f64, v: f64) -> f64
Expand description

Inverse lerp: returns t such that lerp(a, b, t) == v, or 0 if a==b.