Skip to main content

split_h

Function split_h 

Source
pub fn split_h(region: &CellRect, n: usize, gap: f64) -> Vec<CellRect>
Expand description

Splits region into n equal vertical strips (arranged left-to-right) with gap inches between them. Returns a Vec<CellRect> of length n.