Skip to main content

projection

Function projection 

Source
pub fn projection(
    camera: &PmiCamera,
    box_height_pt: f64,
    scale: Option<f64>,
) -> Projection3d
Expand description

A view’s projection: a perspective camera keeps its field of view; an orthographic one is scaled so its saved half height fills half of a 3D box box_height_pt tall, unless scale fixes it.