pub fn from_fov(aspect: N, vfov: N, znear: N, zfar: N) -> OrthographicMatrix3<N> {
        assert!(znear < zfar, "The far plane must be farther than the near plane.");
        assert!(!::is_zero(&aspect));

        let half: N = ::cast(0.5);
        let width  = zfar * (vfov * half).tan();
        let height = width / aspect;

        OrthographicMatrix3::new(-width * half, width * half, -height * half, height * half, znear, zfar)
    }
/// Creates a new orthographic projection matrix from an aspect ratio and the vertical field of view.
Creates a new orthographic projection matrix from an aspect ratio and the vertical field of view.
Creates a new orthographic projection matrix from an aspect ratio and the vertical field of view .
pub fn from_fov(aspect: N, vfov: N, znear: N, zfar: N) -> OrthographicMatrix3<N> {
        assert!(znear < zfar, "The far plane must be farther than the near plane.");
        assert!(!::is_zero(&aspect));
        let half: N = ::cast(0.5);
        let width  = zfar * (vfov * half).tan();
        let height = width / aspect;
        OrthographicMatrix3::new(-width * half, width * half, -height * half, height * half, znear, zfar)
    }
pub fn from_fov ( aspect : N , vfov : N , znear : N , zfar : N ) -> OrthographicMatrix3 < N > { assert ! ( znear zfar " " ) ; assert ! ( is_zero ( aspect ) ) ; let half : N = :: cast ( 0.5 ) ; let width = zfar * ( vfov * half ) . tan ( ) ; let height = width / aspect ; OrthographicMatrix3 :: new ( - width * half , width * half , - height * half , height * half , znear , zfar ) }
Creates a new orthographic projection matrix from an aspect ratio and the vertical field of view.
Creates a new orthographic projection matrix from an aspect ratio and the vertical field of view .
aspect
N
vfov
N
znear
N
zfar
N
aspect
N
vfov
N
znear
N
zfar
N