Skip to main content

shorten_path

Function shorten_path 

Source
pub fn shorten_path(vs: &mut VertexSequence, s: f64, closed: u32)
Expand description

Shorten a vertex sequence by removing s distance-units from the end.

Port of C++ shorten_path from agg_shorten_path.h.