Struct bool4
A 4 component vector of bools.
Inherited Members
Namespace: Unity.Mathematics
Syntax
[Serializable]
public struct bool4 : IEquatable<bool4>
Constructors
| Name | Description |
|---|---|
| bool4(Boolean) | Constructs a bool4 vector from a single bool value by assigning it to every component. |
| bool4(Boolean, Boolean, Boolean, Boolean) | Constructs a bool4 vector from four bool values. |
| bool4(Boolean, Boolean, bool2) | Constructs a bool4 vector from two bool values and a bool2 vector. |
| bool4(Boolean, bool2, Boolean) | Constructs a bool4 vector from a bool value, a bool2 vector and a bool value. |
| bool4(Boolean, bool3) | Constructs a bool4 vector from a bool value and a bool3 vector. |
| bool4(bool2, Boolean, Boolean) | Constructs a bool4 vector from a bool2 vector and two bool values. |
| bool4(bool2, bool2) | Constructs a bool4 vector from two bool2 vectors. |
| bool4(bool3, Boolean) | Constructs a bool4 vector from a bool3 vector and a bool value. |
| bool4(bool4) | Constructs a bool4 vector from a bool4 vector. |
Fields
| Name | Description |
|---|---|
| w | w component of the vector. |
| x | x component of the vector. |
| y | y component of the vector. |
| z | z component of the vector. |
Properties
| Name | Description |
|---|---|
| Item[Int32] | Returns the bool element at a specified index. |
Methods
| Name | Description |
|---|---|
| Equals(Object) | Returns true if the bool4 is equal to a given bool4, false otherwise. |
| Equals(bool4) | Returns true if the bool4 is equal to a given bool4, false otherwise. |
| GetHashCode() | Returns a hash code for the bool4. |
| ToString() | Returns a string representation of the bool4. |
Operators
| Name | Description |
|---|---|
| BitwiseAnd(Boolean, bool4) | Returns the result of a componentwise bitwise and operation on a bool value and a bool4 vector. |
| BitwiseAnd(bool4, Boolean) | Returns the result of a componentwise bitwise and operation on a bool4 vector and a bool value. |
| BitwiseAnd(bool4, bool4) | Returns the result of a componentwise bitwise and operation on two bool4 vectors. |
| BitwiseOr(Boolean, bool4) | Returns the result of a componentwise bitwise or operation on a bool value and a bool4 vector. |
| BitwiseOr(bool4, Boolean) | Returns the result of a componentwise bitwise or operation on a bool4 vector and a bool value. |
| BitwiseOr(bool4, bool4) | Returns the result of a componentwise bitwise or operation on two bool4 vectors. |
| Equality(Boolean, bool4) | Returns the result of a componentwise equality operation on a bool value and a bool4 vector. |
| Equality(bool4, Boolean) | Returns the result of a componentwise equality operation on a bool4 vector and a bool value. |
| Equality(bool4, bool4) | Returns the result of a componentwise equality operation on two bool4 vectors. |
| ExclusiveOr(Boolean, bool4) | Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4 vector. |
| ExclusiveOr(bool4, Boolean) | Returns the result of a componentwise bitwise exclusive or operation on a bool4 vector and a bool value. |
| ExclusiveOr(bool4, bool4) | Returns the result of a componentwise bitwise exclusive or operation on two bool4 vectors. |
| Implicit(Boolean to bool4) | Implicitly converts a single bool value to a bool4 vector by assigning it to every component. |
| Inequality(Boolean, bool4) | Returns the result of a componentwise not equal operation on a bool value and a bool4 vector. |
| Inequality(bool4, Boolean) | Returns the result of a componentwise not equal operation on a bool4 vector and a bool value. |
| Inequality(bool4, bool4) | Returns the result of a componentwise not equal operation on two bool4 vectors. |
| LogicalNot(bool4) | Returns the result of a componentwise not operation on a bool4 vector. |