Skip to main content

easing_points_between

Function easing_points_between 

Source
pub fn easing_points_between(
    points: &[EasingPoint],
    start: f64,
    end: f64,
    output: impl Fn(f64) -> f64,
) -> Option<Vec<EasingPoint>>
Expand description

The points of the curve strictly between linear progress start and end, with that part stretched over 0..1 and each output passed through output, which maps the part’s first output to 0 and its last to 1. None when an output is then not finite.