Skip to main content

ortho

Function ortho 

Source
pub fn ortho(
    left: f64,
    right: f64,
    bottom: f64,
    top: f64,
    near: f64,
    far: f64,
) -> Mat4
Expand description

Orthographic projection: maps [l,r]×[b,t]×[n,f] → [-1,1]³