Skip to main content

ceil_to_grid

Function ceil_to_grid 

Source
pub fn ceil_to_grid(width_px: f32) -> f32
Expand description

The smallest whole grid width that still holds width_px. A resize floor has to be expressed on the lattice the drop snaps to, or the snap rounds back through it.