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