pub const fn snap_to_grid(pos: i64, grid: i64) -> i64
Snaps pos to the nearest multiple of grid.
pos
grid