Skip to main content

approximate_path_length

Function approximate_path_length 

Source
pub fn approximate_path_length(path: &str) -> f64
Expand description

Computes an approximation of the total length of an SVG d path string.

Handles absolute and relative: M/m, L/l, H/h, V/v, C/c, Q/q, A/a, Z/z. Bezier curves and arcs are approximated accurately.