Skip to main content

master_change

Function master_change 

Source
pub fn master_change(
    from: f64,
    speed: f64,
    ramp: f64,
    t: f64,
    stop: Option<f64>,
) -> [f64; 3]
Expand description

The master’s travel, speed and acceleration t seconds after its speed is set from from to speed: the same sin^2 ramp between the two over ramp seconds (master_at is the one from rest), travel from (from + speed) ramp / 2 at its end; then steady, and from stop on down to rest from speed.