pub fn uniform_idx_as_vec2(map_size_lg: MapSizeLg, idx: usize) -> Vec2<i32>
Expand description

Computes the position Vec2 of a SimChunk from an index, where the index was generated by uniform_noise.

NOTE: Dimensions obey constraints on map::MapConfig::map_size_lg.