fn orthographic_rh_gl(left: T, right: T, bottom: T, top: T, near: T, far: T) -> Self {
        let a = T::TWO / (right - left);
        let b = T::TWO / (top - bottom);
        let c = -T::TWO / (far - near);
        let tx = -(right + left) / (right - left);
        let ty = -(top + bottom) / (top - bottom);
        let tz = -(far + near) / (far - near);

        Self::from_cols(
            V4::new(a, T::ZERO, T::ZERO, T::ZERO),
            V4::new(T::ZERO, b, T::ZERO, T::ZERO),
            V4::new(T::ZERO, T::ZERO, c, T::ZERO),
            V4::new(tx, ty, tz, T::ONE),
        )
    }
/// Creates a right-handed orthographic projection matrix with [-1,1] depth
/// range.  This is the same as the OpenGL `glOrtho` function in OpenGL.
/// See
/// https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glOrtho.xml
Creates a right-handed orthographic projection matrix with [-1,1] depth
range.  This is the same as the OpenGL `glOrtho` function in OpenGL.
Creates a right - handed orthographic projection matrix with [ - 1 1 ] depth range . This is the same as the OpenGL ` glOrtho ` function in OpenGL .
fn orthographic_rh_gl(left: T, right: T, bottom: T, top: T, near: T, far: T) -> Self {
        let a = T::TWO / (right - left);
        let b = T::TWO / (top - bottom);
        let c = -T::TWO / (far - near);
        let tx = -(right + left) / (right - left);
        let ty = -(top + bottom) / (top - bottom);
        let tz = -(far + near) / (far - near);
        Self::from_cols(
            V4::new(a, T::ZERO, T::ZERO, T::ZERO),
            V4::new(T::ZERO, b, T::ZERO, T::ZERO),
            V4::new(T::ZERO, T::ZERO, c, T::ZERO),
            V4::new(tx, ty, tz, T::ONE),
        )
    }
fn orthographic_rh_gl ( left : T , right : T , bottom : T , top : T , near : T , far : T ) -> Self { let a = T :: TWO / ( right - left ) ; let b = T :: TWO / ( top - bottom ) ; let c = - T :: TWO / ( far - near ) ; let tx = - ( right + left ) / ( right - left ) ; let ty = - ( top + bottom ) / ( top - bottom ) ; let tz = - ( far + near ) / ( far - near ) ; Self :: from_cols ( V4 :: new ( a , T :: ZERO , T :: ZERO , T :: ZERO ) , V4 :: new ( T :: ZERO , b , T :: ZERO , T :: ZERO ) , V4 :: new ( T :: ZERO , T :: ZERO , c , T :: ZERO ) , V4 :: new ( tx , ty , tz , T :: ONE ) , ) }
Creates a right-handed orthographic projection matrix with [-1,1] depth
range.
Creates a right - handed orthographic projection matrix with [ - 1 1 ] depth range .
left
T
right
T
bottom
T
top
T
near
T
far
T
left
T
right
T
bottom
T
top
T
near
T
far
T