GlmSharp/GlmSharpCompat5/Mat4x4/decmat4.cs
/// <summary>
/// Creates a matrix for an orthographic parallel viewing volume.
/// </summary>
Creates a matrix for an orthographic parallel viewing volume.
Creates a matrix for an orthographic parallel viewing volume .
public static decmat4 Ortho(decimal left, decimal right, decimal bottom, decimal top, decimal zNear, decimal zFar)
        {
            var m = Identity;
            m.m00 = 2/(right - left);
            m.m11 = 2/(top - bottom);
            m.m22 = - 2/(zFar - zNear);
            m.m30 = - (right + left)/(right - left);
            m.m31 = - (top + bottom)/(top - bottom);
            m.m32 = - (zFar + zNear)/(zFar - zNear);
            return m;
        }
public static decmat4 Ortho ( decimal left , decimal right , decimal bottom , decimal top , decimal zNear , decimal zFar ) { var m = Identity ; m . m00 = 2 / ( right - left ) ; m . m11 = 2 / ( top - bottom ) ; m . m22 = - 2 / ( zFar - zNear ) ; m . m30 = - ( right + left ) / ( right - left ) ; m . m31 = - ( top + bottom ) / ( top - bottom ) ; m . m32 = - ( zFar + zNear ) / ( zFar - zNear ) ; return m ; }
Creates a matrix for an orthographic parallel viewing volume.
Creates a matrix for an orthographic parallel viewing volume .
left
decimal
right
decimal
bottom
decimal
top
decimal
zNear
decimal
zFar
decimal