Function rin_graphics::world_to_screen[][src]

pub fn world_to_screen(
    p: &Pnt3,
    viewport: &Rect<i32>,
    projection_view: &Mat4
) -> (Pnt2, ScreenZ)

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