use crate::isobands::Cell; #[inline] pub(crate) fn is_winding_correct(area: f64, is_exterior: bool) -> bool { if is_exterior { area > 0f64 } else { area < 0f64 } } pub(crate) fn empty_cell_grid(li: usize, lj: usize) -> Vec>> { let mut cell_grid: Vec>> = Vec::with_capacity(li - 1); for i in 0..li - 1 { cell_grid.push(Vec::with_capacity(lj - 1)); for _j in 0..lj - 1 { cell_grid[i].push(None); } } cell_grid }