Function storm::math::ortho_from_bounds[][src]

pub fn ortho_from_bounds(bounds: &Vector2<f32>) -> Matrix4<f32>
Expand description

Creates an orthographic matrix from screen bounds with a fixed aspect ratio and with 0,0 in the center.