Skip to main content

cover_cells

Function cover_cells 

Source
pub fn cover_cells(
    xmin: f64,
    xmax: f64,
    ymin: f64,
    ymax: f64,
    bits: u8,
    max: usize,
) -> Option<Vec<(u32, u32)>>
Expand description

The cells a bbox covers at bits per axis, capped: returns None when the cover would exceed max cells (caller drops to a coarser level).