pub fn path_length<T>(path: &Path<T>, is_closed_path: bool) -> f64where T: Copy + ToF64,
Compute the total length of a path. Direct port from clipper.h Length.