Function geometry::snap::snap_to_grid

source ·
pub const fn snap_to_grid(pos: i64, grid: i64) -> i64
Expand description

Snaps pos to the nearest multiple of grid.