pub fn ortho(left: T, right: T,
                 bottom: T, top: T,
                 near: T, far: T) -> TypedMatrix4D<T, Src, Dst> {
        let tx = -((right + left) / (right - left));
        let ty = -((top + bottom) / (top - bottom));
        let tz = -((far + near) / (far - near));

        let (_0, _1): (T, T) = (Zero::zero(), One::one());
        let _2 = _1 + _1;
        TypedMatrix4D::row_major(
            _2 / (right - left), _0                 , _0                , _0,
            _0                 , _2 / (top - bottom), _0                , _0,
            _0                 , _0                 , -_2 / (far - near), _0,
            tx                 , ty                 , tz                , _1
        )
    }
/// Create an orthogonal projection matrix.
Create an orthogonal projection matrix.
Create an orthogonal projection matrix .
pub fn ortho(left: T, right: T,
                 bottom: T, top: T,
                 near: T, far: T) -> TypedMatrix4D<T, Src, Dst> {
        let tx = -((right + left) / (right - left));
        let ty = -((top + bottom) / (top - bottom));
        let tz = -((far + near) / (far - near));
        let (_0, _1): (T, T) = (Zero::zero(), One::one());
        let _2 = _1 + _1;
        TypedMatrix4D::row_major(
            _2 / (right - left), _0                 , _0                , _0,
            _0                 , _2 / (top - bottom), _0                , _0,
            _0                 , _0                 , -_2 / (far - near), _0,
            tx                 , ty                 , tz                , _1
        )
    }
pub fn ortho ( left : T , right : T , bottom : T , top : T , near : T , far : T ) -> TypedMatrix4D < T , Src , Dst > { let tx = - ( ( right + left ) / ( right - left ) ) ; let ty = - ( ( top + bottom ) / ( top - bottom ) ) ; let tz = - ( ( far + near ) / ( far - near ) ) ; let ( _0 , _1 ) : ( T , T ) = ( Zero :: zero ( ) , One :: one ( ) ) ; let _2 = _1 + _1 ; TypedMatrix4D :: row_major ( _2 / ( right - left ) , _0 , _0 , _0 , _0 , _2 / ( top - bottom ) , _0 , _0 , _0 , _0 , - _2 / ( far - near ) , _0 , tx , ty , tz , _1 ) }
Create an orthogonal projection matrix.
Create an orthogonal projection matrix .
left
T
right
T
bottom
T
top
T
near
T
far
T
left
T
right
T
bottom
T
top
T
near
T
far
T