Function csv2svg::unoverlap

source ·
pub fn unoverlap(dots: Vec<i64>, margin: i64) -> Option<Vec<i64>>
Expand description

build a new vec of dots with no dot less than margin from another one. When this can’t be done, return None. The dots vec is assumed

  • to contain 2 or more elements
  • to be strictly increasing Extremities (first and last point) are guaranteed to be returned unchanged.