pub fn round_to_device_pixel(logical: f32, scale_factor: f32) -> f32
Rounds a logical coordinate to the nearest device pixel.