docs.unity.cn
    Show / Hide Table of Contents

    Operator Equality

    Equality(bool2, bool2)

    Returns the result of a componentwise equality operation on two bool2 vectors.

    Declaration
    public static bool2 operator ==(bool2 lhs, bool2 rhs)
    Parameters
    Type Name Description
    bool2 lhs

    Left hand side bool2 to use to compute componentwise equality.

    bool2 rhs

    Right hand side bool2 to use to compute componentwise equality.

    Returns
    Type Description
    bool2

    bool2 result of the componentwise equality.

    Equality(bool2, Boolean)

    Returns the result of a componentwise equality operation on a bool2 vector and a bool value.

    Declaration
    public static bool2 operator ==(bool2 lhs, bool rhs)
    Parameters
    Type Name Description
    bool2 lhs

    Left hand side bool2 to use to compute componentwise equality.

    Boolean rhs

    Right hand side bool to use to compute componentwise equality.

    Returns
    Type Description
    bool2

    bool2 result of the componentwise equality.

    Equality(Boolean, bool2)

    Returns the result of a componentwise equality operation on a bool value and a bool2 vector.

    Declaration
    public static bool2 operator ==(bool lhs, bool2 rhs)
    Parameters
    Type Name Description
    Boolean lhs

    Left hand side bool to use to compute componentwise equality.

    bool2 rhs

    Right hand side bool2 to use to compute componentwise equality.

    Returns
    Type Description
    bool2

    bool2 result of the componentwise equality.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023