// Measure total Manhattan travel along a rectilinear path. Mismatched coordinate arrays return minus one. pub fn polyline_taxicab(xs: vector, ys: vector) -> f64 { if len(xs)!=len(ys) { return -1.0; } let mut distance = 0.0; let mut i = 1; while i