Function rin::graphics::world_to_screen[][src]

pub fn world_to_screen(
    p: &Point<f32, U3>,
    viewport: &Rect<i32>,
    projection_view: &Matrix<f32, U4, U4, <DefaultAllocator as Allocator<f32, U4, U4>>::Buffer>
) -> (Point<f32, U2>, ScreenZ)

Converts a 3d point to a projection in the screen in 2D + normalized coordinates of it’s depth