Skip to main content

tween

Function tween 

Source
pub fn tween(
    a: f64,
    a_unit: &str,
    b: f64,
    b_unit: &str,
    t: f64,
) -> Result<f64, String>
Expand description

Linear tween of two same-unit scalars. t is clamped to [0, 1].