Skip to main content

cubic_interpolate

Function cubic_interpolate 

pub fn cubic_interpolate(
    from: f64,
    to: f64,
    pre: f64,
    post: f64,
    weight: f64,
) -> f64
Expand description

Cubic interpolates between two values by the factor defined in weight with pre and post values.