Reign.Core.Matrix4.Perspective C# (CSharp) Method

Perspective() public static method

public static Perspective ( float fov, float aspect, float near, float far ) : Matrix4
fov float
aspect float
near float
far float
return Matrix4
        public static Matrix4 Perspective(float fov, float aspect, float near, float far)
        {
            float top = near * (float)Math.Tan(fov * .5f);
            float bottom = -top;
            float right = top * aspect;
            float left = -right;

            return Frustum(left, right, bottom, top, near, far);
        }

Same methods

Matrix4::Perspective ( float fov, float aspect, float near, float far, Matrix4 &result ) : void