Skip to main content

cell_coord

Function cell_coord 

Source
pub fn cell_coord(pos: i32) -> i32
Expand description

Compute cell coordinate from world position (floor division).

Uses div_euclid to correctly handle all negative values including i32::MIN.