docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Ortho

    Ortho(float, float, float, float)

    Returns a float4x4 centered orthographic projection matrix.

    Declaration
    public static float4x4 Ortho(float width, float height, float near, float far)
    Parameters
    Type Name Description
    float width

    The width of the view volume.

    float height

    The height of the view volume.

    float near

    The distance to the near plane.

    float far

    The distance to the far plane.

    Returns
    Type Description
    float4x4

    The float4x4 centered orthographic projection matrix.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)