docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CoreMatrixUtils

    Set of utility functions for the Core Scriptable Render Pipeline Library related to Matrix operations

    Inheritance
    object
    CoreMatrixUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public static class CoreMatrixUtils

    Methods

    Name Description
    MatrixTimesTranslation(ref Matrix4x4, Vector3)

    This function provides the equivalent of multiplying matrix parameter inOutMatrix with a translation matrix defined by the parameter translation. The order of the equivalent multiplication is inOutMatrix * translation.

    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.

    MultiplyPerspectiveMatrix(Matrix4x4, Matrix4x4)

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

    MultiplyProjectionMatrix(Matrix4x4, Matrix4x4, bool)

    Multiplies a matrix with a projection matrix. This function is faster than performing the full matrix multiplication. The operation order is projMatrix * rhs.

    TranslationTimesMatrix(ref Matrix4x4, Vector3)

    This function provides the equivalent of multiplying a translation matrix defined by the parameter translation with the matrix specified by the parameter inOutMatrix. The order of the equivalent multiplication is translation * inOutMatrix.

    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)