# bool3x3

> A 3x3 matrix of bools.

## Definition

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

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

## Fields

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

## Constructors

| Constructor                                                                                                                                                                                                                                                                  | Description                                                                              |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [bool3x3(System.Boolean)](/engine/6000.7/script-reference/unity/mathematics/bool3x3/ctor.md#bool3x3\(bool\))                                                                                                                                                                 | Constructs a bool3x3 matrix from a single bool value by assigning it to every component. |
| [bool3x3(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/bool3x3/ctor.md#bool3x3\(bool-bool-bool-bool-bool-bool-bool-bool-bool\)) | Constructs a bool3x3 matrix from 9 bool values given in row-major order.                 |
| [bool3x3(Unity.Mathematics.bool3,Unity.Mathematics.bool3,Unity.Mathematics.bool3)](/engine/6000.7/script-reference/unity/mathematics/bool3x3/ctor.md#bool3x3\(bool3-bool3-bool3\))                                                                                           | Constructs a bool3x3 matrix from three bool3 vectors.                                    |

## Properties

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

## Methods

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

## Operators

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