Function ambient_api_core::camera::screen_to_clip_space
source · pub fn screen_to_clip_space(screen_position: Vec2) -> Vec2
Available on crate feature
client
only.Expand description
Converts a screen position (e.g. mouse position) to clip-space coordinates for the window.