Function rin::graphics::screen_to_world [−][src]
pub fn screen_to_world(
screen: &Point<f32, U2>,
depth: ScreenZ,
projection_view: &Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>,
viewport: &Rect<i32>
) -> Point<f32, U3>
Converts a screen position + a z value in either world coordinates or normalized depth into a world 3d position