Struct bool2
A 2 component vector of bools.
Implements
Inherited Members
Namespace: Unity.Mathematics
Assembly: Unity.Mathematics.dll
Syntax
[Serializable]
public struct bool2 : IEquatable<bool2>
  Constructors
| Name | Description | 
|---|---|
| bool2(bool) | Constructs a bool2 vector from a single bool value by assigning it to every component.  | 
      
| bool2(bool, bool) | Constructs a bool2 vector from two bool values.  | 
      
| bool2(bool2) | Constructs a bool2 vector from a bool2 vector.  | 
      
Fields
| Name | Description | 
|---|---|
| x | x component of the vector.  | 
      
| y | y component of the vector.  | 
      
Properties
| Name | Description | 
|---|---|
| this[int] | Returns the bool element at a specified index.  | 
      
Methods
| Name | Description | 
|---|---|
| Equals(object) | Returns true if the bool2 is equal to a given bool2, false otherwise.  | 
      
| Equals(bool2) | Returns true if the bool2 is equal to a given bool2, false otherwise.  | 
      
| GetHashCode() | Returns a hash code for the bool2.  | 
      
| ToString() | Returns a string representation of the bool2.  | 
      
Operators
| Name | Description | 
|---|---|
| operator &(bool, bool2) | Returns the result of a componentwise bitwise and operation on a bool value and a bool2 vector.  | 
      
| operator &(bool2, bool) | Returns the result of a componentwise bitwise and operation on a bool2 vector and a bool value.  | 
      
| operator &(bool2, bool2) | Returns the result of a componentwise bitwise and operation on two bool2 vectors.  | 
      
| operator |(bool, bool2) | Returns the result of a componentwise bitwise or operation on a bool value and a bool2 vector.  | 
      
| operator |(bool2, bool) | Returns the result of a componentwise bitwise or operation on a bool2 vector and a bool value.  | 
      
| operator |(bool2, bool2) | Returns the result of a componentwise bitwise or operation on two bool2 vectors.  | 
      
| operator ==(bool, bool2) | Returns the result of a componentwise equality operation on a bool value and a bool2 vector.  | 
      
| operator ==(bool2, bool) | Returns the result of a componentwise equality operation on a bool2 vector and a bool value.  | 
      
| operator ==(bool2, bool2) | Returns the result of a componentwise equality operation on two bool2 vectors.  | 
      
| operator ^(bool, bool2) | Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2 vector.  | 
      
| operator ^(bool2, bool) | Returns the result of a componentwise bitwise exclusive or operation on a bool2 vector and a bool value.  | 
      
| operator ^(bool2, bool2) | Returns the result of a componentwise bitwise exclusive or operation on two bool2 vectors.  | 
      
| implicit operator bool2(bool) | Implicitly converts a single bool value to a bool2 vector by assigning it to every component.  | 
      
| operator !=(bool, bool2) | Returns the result of a componentwise not equal operation on a bool value and a bool2 vector.  | 
      
| operator !=(bool2, bool) | Returns the result of a componentwise not equal operation on a bool2 vector and a bool value.  | 
      
| operator !=(bool2, bool2) | Returns the result of a componentwise not equal operation on two bool2 vectors.  | 
      
| operator !(bool2) | Returns the result of a componentwise not operation on a bool2 vector.  |