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