pub fn ortho(left: f32, right: f32, bottom: f32, top: f32, near: f32, far: f32) -> Matrix4 {
        Matrix4 {data: [[2.0 / (right - left),                  0.0,                  0.0, -(right + left) / (right - left)],
                        [                 0.0, 2.0 / (top - bottom),                  0.0, -(top + bottom) / (top - bottom)],
                        [                 0.0,                  0.0, 2.0 / (-far - -near), -(-far + -near) / (-far - -near)],
                        [                 0.0,                  0.0,                  0.0,                              1.0]]}
    }
/// Returns an orthographic projection matrix.
Returns an orthographic projection matrix.
Returns an orthographic projection matrix .
pub fn ortho(left: f32, right: f32, bottom: f32, top: f32, near: f32, far: f32) -> Matrix4 {
        Matrix4 {data: [[2.0 / (right - left),                  0.0,                  0.0, -(right + left) / (right - left)],
                        [                 0.0, 2.0 / (top - bottom),                  0.0, -(top + bottom) / (top - bottom)],
                        [                 0.0,                  0.0, 2.0 / (-far - -near), -(-far + -near) / (-far - -near)],
                        [                 0.0,                  0.0,                  0.0,                              1.0]]}
    }
pub fn ortho ( left : f32 , right : f32 , bottom : f32 , top : f32 , near : f32 , far : f32 ) -> Matrix4 { Matrix4 { data : [ [ 2.0 / ( right - left ) , 0.0 , 0.0 , - ( right + left ) / ( right - left ) ] , [ 0.0 , 2.0 / ( top - bottom ) , 0.0 , - ( top + bottom ) / ( top - bottom ) ] , [ 0.0 , 0.0 , 2.0 / ( - far - - near ) , - ( - far + - near ) / ( - far - - near ) ] , [ 0.0 , 0.0 , 0.0 , 1.0 ] ] } }
Returns an orthographic projection matrix.
Returns an orthographic projection matrix .
left
f32
right
f32
bottom
f32
top
f32
near
f32
far
f32
left
f32
right
f32
bottom
f32
top
f32
near
f32
far
f32