Struct bool3x2 | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct bool3x2

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

    Constructors

    bool3x2(Boolean)

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

    Declaration
    public bool3x2(bool v)
    Parameters
    Type Name Description
    System.Boolean v

    bool3x2(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)

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

    Declaration
    public bool3x2(bool m00, bool m01, bool m10, bool m11, bool m20, bool m21)
    Parameters
    Type Name Description
    System.Boolean m00
    System.Boolean m01
    System.Boolean m10
    System.Boolean m11
    System.Boolean m20
    System.Boolean m21

    bool3x2(bool3, bool3)

    Constructs a bool3x2 matrix from two bool3 vectors.

    Declaration
    public bool3x2(bool3 c0, bool3 c1)
    Parameters
    Type Name Description
    bool3 c0
    bool3 c1

    Fields

    c0

    Declaration
    public bool3 c0
    Field Value
    Type Description
    bool3

    c1

    Declaration
    public bool3 c1
    Field Value
    Type Description
    bool3

    Properties

    Item[Int32]

    Returns the bool3 element at a specified index.

    Declaration
    public bool3 this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    bool3

    Methods

    Equals(Object)

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

    Declaration
    public override bool Equals(object o)
    Parameters
    Type Name Description
    System.Object o
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    Equals(bool3x2)

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

    Declaration
    public bool Equals(bool3x2 rhs)
    Parameters
    Type Name Description
    bool3x2 rhs
    Returns
    Type Description
    System.Boolean
    Implements
    System.IEquatable<T>.Equals(T)

    GetHashCode()

    Returns a hash code for the bool3x2.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Returns a string representation of the bool3x2.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    Operators

    BitwiseAnd(Boolean, bool3x2)

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

    Declaration
    public static bool3x2 operator &(bool lhs, bool3x2 rhs)
    Parameters
    Type Name Description
    System.Boolean lhs
    bool3x2 rhs
    Returns
    Type Description
    bool3x2

    BitwiseAnd(bool3x2, Boolean)

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

    Declaration
    public static bool3x2 operator &(bool3x2 lhs, bool rhs)
    Parameters
    Type Name Description
    bool3x2 lhs
    System.Boolean rhs
    Returns
    Type Description
    bool3x2

    BitwiseAnd(bool3x2, bool3x2)

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

    Declaration
    public static bool3x2 operator &(bool3x2 lhs, bool3x2 rhs)
    Parameters
    Type Name Description
    bool3x2 lhs
    bool3x2 rhs
    Returns
    Type Description
    bool3x2

    BitwiseOr(Boolean, bool3x2)

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

    Declaration
    public static bool3x2 operator |(bool lhs, bool3x2 rhs)
    Parameters
    Type Name Description
    System.Boolean lhs
    bool3x2 rhs
    Returns
    Type Description
    bool3x2

    BitwiseOr(bool3x2, Boolean)

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

    Declaration
    public static bool3x2 operator |(bool3x2 lhs, bool rhs)
    Parameters
    Type Name Description
    bool3x2 lhs
    System.Boolean rhs
    Returns
    Type Description
    bool3x2

    BitwiseOr(bool3x2, bool3x2)

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

    Declaration
    public static bool3x2 operator |(bool3x2 lhs, bool3x2 rhs)
    Parameters
    Type Name Description
    bool3x2 lhs
    bool3x2 rhs
    Returns
    Type Description
    bool3x2

    Equality(Boolean, bool3x2)

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

    Declaration
    public static bool3x2 operator ==(bool lhs, bool3x2 rhs)
    Parameters
    Type Name Description
    System.Boolean lhs
    bool3x2 rhs
    Returns
    Type Description
    bool3x2

    Equality(bool3x2, Boolean)

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

    Declaration
    public static bool3x2 operator ==(bool3x2 lhs, bool rhs)
    Parameters
    Type Name Description
    bool3x2 lhs
    System.Boolean rhs
    Returns
    Type Description
    bool3x2

    Equality(bool3x2, bool3x2)

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

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

    ExclusiveOr(Boolean, bool3x2)

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

    Declaration
    public static bool3x2 operator ^(bool lhs, bool3x2 rhs)
    Parameters
    Type Name Description
    System.Boolean lhs
    bool3x2 rhs
    Returns
    Type Description
    bool3x2

    ExclusiveOr(bool3x2, Boolean)

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

    Declaration
    public static bool3x2 operator ^(bool3x2 lhs, bool rhs)
    Parameters
    Type Name Description
    bool3x2 lhs
    System.Boolean rhs
    Returns
    Type Description
    bool3x2

    ExclusiveOr(bool3x2, bool3x2)

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

    Declaration
    public static bool3x2 operator ^(bool3x2 lhs, bool3x2 rhs)
    Parameters
    Type Name Description
    bool3x2 lhs
    bool3x2 rhs
    Returns
    Type Description
    bool3x2

    Implicit(Boolean to bool3x2)

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

    Declaration
    public static implicit operator bool3x2(bool v)
    Parameters
    Type Name Description
    System.Boolean v
    Returns
    Type Description
    bool3x2

    Inequality(Boolean, bool3x2)

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

    Declaration
    public static bool3x2 operator !=(bool lhs, bool3x2 rhs)
    Parameters
    Type Name Description
    System.Boolean lhs
    bool3x2 rhs
    Returns
    Type Description
    bool3x2

    Inequality(bool3x2, Boolean)

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

    Declaration
    public static bool3x2 operator !=(bool3x2 lhs, bool rhs)
    Parameters
    Type Name Description
    bool3x2 lhs
    System.Boolean rhs
    Returns
    Type Description
    bool3x2

    Inequality(bool3x2, bool3x2)

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

    Declaration
    public static bool3x2 operator !=(bool3x2 lhs, bool3x2 rhs)
    Parameters
    Type Name Description
    bool3x2 lhs
    bool3x2 rhs
    Returns
    Type Description
    bool3x2

    LogicalNot(bool3x2)

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

    Declaration
    public static bool3x2 operator !(bool3x2 val)
    Parameters
    Type Name Description
    bool3x2 val
    Returns
    Type Description
    bool3x2
    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