fn discretize_zoom(zoom: f64) -> (f64, usize)