Skip to main content

cells_in

Function cells_in 

Source
pub fn cells_in(
    rect: Rect,
    per_row: usize,
    count: usize,
    cell: Vec2,
    gap: f32,
    pitch: f32,
) -> Vec<usize>
Expand description

The cells of a grid per_row wide that rect touches, rect in the grid’s own coordinates (its first cell’s corner at the origin), each cell cell large, gap apart in a row and pitch from one row’s top to the next’s.