Skip to main content

intercept_moving

Function intercept_moving 

Source
pub fn intercept_moving(
    axes: &[AxisInfo],
    from: &[f64],
    va: &[f64],
    target: &dyn Fn(f64) -> (Vec<f64>, Vec<f64>),
) -> Option<(f64, Move, Vec<f64>)>
Expand description

intercept for a target that is at target(T) with the velocity there after T seconds (a part on a belt that still speeds up): T, the move, and the target’s velocity at T. The move goes to Q = target(T) - T (va + vb(T)) / 2.