Skip to main content

scale_coordinates

Function scale_coordinates 

Source
pub fn scale_coordinates(
    x: f32,
    y: f32,
    play_res_x: f32,
    play_res_y: f32,
    screen_width: f32,
    screen_height: f32,
) -> (f32, f32)
Expand description

Handle PlayResX/PlayResY coordinate scaling