Skip to main content

derive

Function derive 

Source
pub fn derive(
    camera: &Camera,
    xres: u32,
    yres: u32,
    hx: f32,
    hy: f32,
    hz: f32,
) -> CameraState
Expand description

Derive the per-frame CameraState for an xres × yres framebuffer with projection centre (hx, hy) and focal length hz.