Skip to main content

drag_path

Function drag_path 

Source
pub(crate) fn drag_path(
    start: (i32, i32),
    via: &[(i32, i32)],
    end: (i32, i32),
) -> Vec<(i32, i32)>
Expand description

The screen points a drag moves through, from start to end by way of via, in order. Each leg is cut into short steps (the last step of a leg lands exactly on its end), and the whole drag is at most MAX_DRAG_MOVES moves. The first point is start itself.