Skip to main content

lerp

Function lerp 

Source
pub fn lerp(from: f64, to: f64, progress: f64) -> f64
Expand description

Interpolate between two values.

Takes progress rather than time, so overshoot passes through: a curve that goes past 1 moves the value past its target and back, which is the whole point of OutBack and of an underdamped spring.