bool2x3
A 2x3 matrix of bools.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
- Implements: IEquatable<bool2x3>
public struct bool2x3 : IEquatable<bool2x3>
Fields
Constructors
Constructor | Description |
|---|---|
| bool2x3(System.Boolean) | Constructs a bool2x3 matrix from a single bool value by assigning it to every component. |
| bool2x3(System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean) | Constructs a bool2x3 matrix from 6 bool values given in row-major order. |
| bool2x3(Unity.Mathematics.bool2,Unity.Mathematics.bool2,Unity.Mathematics.bool2) | Constructs a bool2x3 matrix from three bool2 vectors. |
Properties
Property | Description |
|---|---|
| this[] | Returns the bool2 element at a specified index. |
Methods
Method | Description |
|---|---|
| Equals | 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
Operator | Description |
|---|---|
| operator & | Returns the result of a componentwise bitwise and operation on a bool value and a bool2x3 matrix. |
| operator | | Returns the result of a componentwise bitwise or operation on a bool value and a bool2x3 matrix. |
| operator == | Returns the result of a componentwise equality operation on a bool value and a bool2x3 matrix. |
| operator ^ | Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2x3 matrix. |
| bool2x3 | Implicitly converts a single bool value to a bool2x3 matrix by assigning it to every component. |
| operator != | Returns the result of a componentwise not equal operation on a bool value and a bool2x3 matrix. |
| operator ! | Returns the result of a componentwise not operation on a bool2x3 matrix. |