docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MultiplyOrthoMatrix

    MultiplyOrthoMatrix(Matrix4x4, Matrix4x4, bool)

    Multiplies a matrix with an orthographic matrix. This function is faster than performing the full matrix multiplication. The operation order is ortho * rhs.

    Declaration
    public static Matrix4x4 MultiplyOrthoMatrix(Matrix4x4 ortho, Matrix4x4 rhs, bool centered)
    Parameters
    Type Name Description
    Matrix4x4 ortho

    The ortho matrix to multiply with rhs.

    Matrix4x4 rhs

    A matrix to be multiply to perspective.

    bool centered

    If true, it means that right and left are equivalently distant from center and similarly top/bottom are equivalently distant from center.

    Returns
    Type Description
    Matrix4x4

    Returns the matrix that is the result of the multiplication.

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