# bool4x4

> A 4x4 matrix of bools.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Mathematics](/engine/6000.7/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule
* **Implements:** [IEquatable\<bool4x4>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct bool4x4 : IEquatable<bool4x4>
```

## Fields

| Value                                                                 | Description             |
| --------------------------------------------------------------------- | ----------------------- |
| [c0](/engine/6000.7/script-reference/unity/mathematics/bool4x4/c0.md) | Column 0 of the matrix. |
| [c1](/engine/6000.7/script-reference/unity/mathematics/bool4x4/c1.md) | Column 1 of the matrix. |
| [c2](/engine/6000.7/script-reference/unity/mathematics/bool4x4/c2.md) | Column 2 of the matrix. |
| [c3](/engine/6000.7/script-reference/unity/mathematics/bool4x4/c3.md) | Column 3 of the matrix. |

## Constructors

| Constructor                                                                                                                                                                                                                                                                                                                                                                                                              | Description                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- |
| [bool4x4(System.Boolean)](/engine/6000.7/script-reference/unity/mathematics/bool4x4/ctor.md#bool4x4\(bool\))                                                                                                                                                                                                                                                                                                             | Constructs a bool4x4 matrix from a single bool value by assigning it to every component. |
| [bool4x4(System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean)](/engine/6000.7/script-reference/unity/mathematics/bool4x4/ctor.md#bool4x4\(bool-bool-bool-bool-bool-bool-bool-bool-bool-bool-bool-bool-bool-bool-bool-bool\)) | Constructs a bool4x4 matrix from 16 bool values given in row-major order.                |
| [bool4x4(Unity.Mathematics.bool4,Unity.Mathematics.bool4,Unity.Mathematics.bool4,Unity.Mathematics.bool4)](/engine/6000.7/script-reference/unity/mathematics/bool4x4/ctor.md#bool4x4\(bool4-bool4-bool4-bool4\))                                                                                                                                                                                                         | Constructs a bool4x4 matrix from four bool4 vectors.                                     |

## Properties

| Property                                                                      | Description                                     |
| ----------------------------------------------------------------------------- | ----------------------------------------------- |
| [this\[\]](/engine/6000.7/script-reference/unity/mathematics/bool4x4/item.md) | Returns the bool4 element at a specified index. |

## Methods

| Method                                                                                  | Description                                                               |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [Equals](/engine/6000.7/script-reference/unity/mathematics/bool4x4/equals.md)           | Returns true if the bool4x4 is equal to a given bool4x4, false otherwise. |
| [GetHashCode](/engine/6000.7/script-reference/unity/mathematics/bool4x4/gethashcode.md) | Returns a hash code for the bool4x4.                                      |
| [ToString](/engine/6000.7/script-reference/unity/mathematics/bool4x4/tostring.md)       | Returns a string representation of the bool4x4.                           |

## Operators

| Operator                                                                                  | Description                                                                                                |
| ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [operator &](/engine/6000.7/script-reference/unity/mathematics/bool4x4/op-bitwiseand.md)  | Returns the result of a componentwise bitwise and operation on a bool value and a bool4x4 matrix.          |
| [operator \|](/engine/6000.7/script-reference/unity/mathematics/bool4x4/op-bitwiseor.md)  | Returns the result of a componentwise bitwise or operation on a bool value and a bool4x4 matrix.           |
| [operator ==](/engine/6000.7/script-reference/unity/mathematics/bool4x4/op-equality.md)   | Returns the result of a componentwise equality operation on a bool value and a bool4x4 matrix.             |
| [operator ^](/engine/6000.7/script-reference/unity/mathematics/bool4x4/op-exclusiveor.md) | Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool4x4 matrix. |
| [bool4x4](/engine/6000.7/script-reference/unity/mathematics/bool4x4/op-implicit.md)       | Implicitly converts a single bool value to a bool4x4 matrix by assigning it to every component.            |
| [operator !=](/engine/6000.7/script-reference/unity/mathematics/bool4x4/op-inequality.md) | Returns the result of a componentwise not equal operation on a bool value and a bool4x4 matrix.            |
| [operator !](/engine/6000.7/script-reference/unity/mathematics/bool4x4/op-logicalnot.md)  | Returns the result of a componentwise not operation on a bool4x4 matrix.                                   |
