Skip to main content

stepped_breaks

Function stepped_breaks 

Source
pub fn stepped_breaks(start: f64, end: f64, step: f64) -> Vec<f64>
Expand description

Evenly spaced break values start, start+step, … up to end (inclusive, with a small tolerance). Index-driven and capped, so it terminates even when step is below the floating-point resolution of start (where repeated v += step would never advance).