docs.unity.cn
    Show / Hide Table of Contents

    Operator UnaryNegation

    UnaryNegation(float4)

    Returns the result of a componentwise unary minus operation on a float4 vector.

    Declaration
    public static float4 operator -(float4 val)
    Parameters
    Type Name Description
    float4 val

    Value to use when computing the componentwise unary minus.

    Returns
    Type Description
    float4

    float4 result of the componentwise unary minus.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, March 29, 2022
    Terms of use