pub fn flerp(start: f32, end: f32, percent: f32) -> f32
Expand description
This method has to be separate and named differently because f32::lerp already exists but is unstable
see [f32::lerp]
calculate the point at percent
between self
and end
ยงUsage
assert_eq!(flerp(10.0, 20.0, 0.5), 15.0);
assert_eq!(flerp(10.0, 20.0, 0.1), 11.0);