pub fn window_to_ndc(win: (f32, f32), size: (f32, f32)) -> (f32, f32)Expand description
Window pixel → normalized device coordinates in [-1, 1], origin centre, x
right, y up. Port of Viewport.windowToNdc (no viewport origin offset: the
widget passes coordinates already relative to the scene rect).