fn orthographic_lh(left: T, right: T, bottom: T, top: T, near: T, far: T) -> Self {
        let rcp_width = T::ONE / (right - left);
        let rcp_height = T::ONE / (top - bottom);
        let r = T::ONE / (far - near);
        Self::from_cols(
            V4::new(rcp_width + rcp_width, T::ZERO, T::ZERO, T::ZERO),
            V4::new(T::ZERO, rcp_height + rcp_height, T::ZERO, T::ZERO),
            V4::new(T::ZERO, T::ZERO, r, T::ZERO),
            V4::new(
                -(left + right) * rcp_width,
                -(top + bottom) * rcp_height,
                -r * near,
                T::ONE,
            ),
        )
    }
/// Creates a left-handed orthographic projection matrix with [0,1] depth range.
Creates a left-handed orthographic projection matrix with [0,1] depth range.
Creates a left - handed orthographic projection matrix with [ 0 1 ] depth range .
fn orthographic_lh(left: T, right: T, bottom: T, top: T, near: T, far: T) -> Self {
        let rcp_width = T::ONE / (right - left);
        let rcp_height = T::ONE / (top - bottom);
        let r = T::ONE / (far - near);
        Self::from_cols(
            V4::new(rcp_width + rcp_width, T::ZERO, T::ZERO, T::ZERO),
            V4::new(T::ZERO, rcp_height + rcp_height, T::ZERO, T::ZERO),
            V4::new(T::ZERO, T::ZERO, r, T::ZERO),
            V4::new(
                -(left + right) * rcp_width,
                -(top + bottom) * rcp_height,
                -r * near,
                T::ONE,
            ),
        )
    }
fn orthographic_lh ( left : T , right : T , bottom : T , top : T , near : T , far : T ) -> Self { let rcp_width = T :: ONE / ( right - left ) ; let rcp_height = T :: ONE / ( top - bottom ) ; let r = T :: ONE / ( far - near ) ; Self :: from_cols ( V4 :: new ( rcp_width + rcp_width , T :: ZERO , T :: ZERO , T :: ZERO ) , V4 :: new ( T :: ZERO , rcp_height + rcp_height , T :: ZERO , T :: ZERO ) , V4 :: new ( T :: ZERO , T :: ZERO , r , T :: ZERO ) , V4 :: new ( - ( left + right ) * rcp_width , - ( top + bottom ) * rcp_height , - r * near , T :: ONE , ) , ) }
Creates a left-handed orthographic projection matrix with [0,1] depth range.
Creates a left - handed orthographic projection matrix with [ 0 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