Function inv_flerp

Source
pub fn inv_flerp(start: f32, end: f32, point: f32) -> f32
Expand description

calculate the percent for point between self and end

ยงUsage

assert_eq!(inv_flerp(10.0, 20.0, 15.0), 0.5);
assert_eq!(inv_flerp(10.0, 20.0, 11.0), 0.1);