bool4x2
A 4x2 matrix of bools.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Struct
- Namespace: Unity.Mathematics
- Assembly: UnityEngine.MathematicsModule
- Implements: IEquatable<bool4x2>
public struct bool4x2 : IEquatable<bool4x2>
Fields
Constructors
Constructor | Description |
|---|---|
| bool4x2(System.Boolean) | Constructs a bool4x2 matrix from a single bool value by assigning it to every component. |
| bool4x2(System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean) | Constructs a bool4x2 matrix from 8 bool values given in row-major order. |
| bool4x2(Unity.Mathematics.bool4,Unity.Mathematics.bool4) | Constructs a bool4x2 matrix from two bool4 vectors. |
Properties
Property | Description |
|---|---|
| this[] | Returns the bool4 element at a specified index. |
Methods
Method | Description |
|---|---|
| Equals | Returns true if the bool4x2 is equal to a given bool4x2, false otherwise. |
| GetHashCode | Returns a hash code for the bool4x2. |
| ToString | Returns a string representation of the bool4x2. |
Operators
Operator | Description |
|---|---|
| operator & | Returns the result of a componentwise bitwise and operation on a bool value and a bool4x2 matrix. |
| operator | | Returns the result of a componentwise bitwise or operation on a bool value and a bool4x2 matrix. |
| operator == | Returns the result of a componentwise equality operation on a bool value and a bool4x2 matrix. |
| operator ^ | Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4x2 matrix. |
| bool4x2 | Implicitly converts a single bool value to a bool4x2 matrix by assigning it to every component. |
| operator != | Returns the result of a componentwise not equal operation on a bool value and a bool4x2 matrix. |
| operator ! | Returns the result of a componentwise not operation on a bool4x2 matrix. |