Skip to main content

inv_lerp

Function inv_lerp 

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

Inverse lerp: find t such that lerp(a, b, t) == v