Skip to main content

via_pieces

Function via_pieces 

Source
pub fn via_pieces(via: &[Vec<f64>], target: &[f64]) -> Vec<Piece>
Expand description

The path of a cycle segment through its via points (via in [[cycle.segment]]): a line to the first, a smooth curve (Piece::Spline) through the others, and a line from the last to the target. So the path leaves its start and arrives at its target on straight lines, and rounds the corners in between: with via points straight above the start and the target, a lift, traverse and lower without a stop. One via point alone is two lines, with a stop between.