docs.unity.cn
    Show / Hide Table of Contents

    Struct bool2x3

    A 2x3 matrix of bools.

    Inherited Members
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Mathematics
    Syntax
    [Serializable]
    public struct bool2x3 : IEquatable<bool2x3>

    Constructors

    Name Description
    bool2x3(Boolean)

    Constructs a bool2x3 matrix from a single bool value by assigning it to every component.

    bool2x3(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)

    Constructs a bool2x3 matrix from 6 bool values given in row-major order.

    bool2x3(bool2, bool2, bool2)

    Constructs a bool2x3 matrix from three bool2 vectors.

    Fields

    Name Description
    c0

    Column 0 of the matrix.

    c1

    Column 1 of the matrix.

    c2

    Column 2 of the matrix.

    Properties

    Name Description
    Item[Int32]

    Returns the bool2 element at a specified index.

    Methods

    Name Description
    Equals(Object)

    Returns true if the bool2x3 is equal to a given bool2x3, false otherwise.

    Equals(bool2x3)

    Returns true if the bool2x3 is equal to a given bool2x3, false otherwise.

    GetHashCode()

    Returns a hash code for the bool2x3.

    ToString()

    Returns a string representation of the bool2x3.

    Operators

    Name Description
    BitwiseAnd(Boolean, bool2x3)

    Returns the result of a componentwise bitwise and operation on a bool value and a bool2x3 matrix.

    BitwiseAnd(bool2x3, Boolean)

    Returns the result of a componentwise bitwise and operation on a bool2x3 matrix and a bool value.

    BitwiseAnd(bool2x3, bool2x3)

    Returns the result of a componentwise bitwise and operation on two bool2x3 matrices.

    BitwiseOr(Boolean, bool2x3)

    Returns the result of a componentwise bitwise or operation on a bool value and a bool2x3 matrix.

    BitwiseOr(bool2x3, Boolean)

    Returns the result of a componentwise bitwise or operation on a bool2x3 matrix and a bool value.

    BitwiseOr(bool2x3, bool2x3)

    Returns the result of a componentwise bitwise or operation on two bool2x3 matrices.

    Equality(Boolean, bool2x3)

    Returns the result of a componentwise equality operation on a bool value and a bool2x3 matrix.

    Equality(bool2x3, Boolean)

    Returns the result of a componentwise equality operation on a bool2x3 matrix and a bool value.

    Equality(bool2x3, bool2x3)

    Returns the result of a componentwise equality operation on two bool2x3 matrices.

    ExclusiveOr(Boolean, bool2x3)

    Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2x3 matrix.

    ExclusiveOr(bool2x3, Boolean)

    Returns the result of a componentwise bitwise exclusive or operation on a bool2x3 matrix and a bool value.

    ExclusiveOr(bool2x3, bool2x3)

    Returns the result of a componentwise bitwise exclusive or operation on two bool2x3 matrices.

    Implicit(Boolean to bool2x3)

    Implicitly converts a single bool value to a bool2x3 matrix by assigning it to every component.

    Inequality(Boolean, bool2x3)

    Returns the result of a componentwise not equal operation on a bool value and a bool2x3 matrix.

    Inequality(bool2x3, Boolean)

    Returns the result of a componentwise not equal operation on a bool2x3 matrix and a bool value.

    Inequality(bool2x3, bool2x3)

    Returns the result of a componentwise not equal operation on two bool2x3 matrices.

    LogicalNot(bool2x3)

    Returns the result of a componentwise not operation on a bool2x3 matrix.

    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