# operator ==

> Returns the result of a componentwise equality operation on two bool3 vectors.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Mathematics](/engine/6000.7/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

## operator ==(bool3, bool3)

Returns the result of a componentwise equality operation on two bool3 vectors.

```csharp
public static bool3 operator ==(bool3 lhs, bool3 rhs)
```

### Parameters

**** (\[bool3]\(/engine/6000.7/script-reference/unity/mathematics/bool3)): Left hand side bool3 to use to compute componentwise equality.**** (\[bool3]\(/engine/6000.7/script-reference/unity/mathematics/bool3)): Right hand side bool3 to use to compute componentwise equality.

### Returns

| Type                                                                | Description                                 |
| ------------------------------------------------------------------- | ------------------------------------------- |
| [bool3](/engine/6000.7/script-reference/unity/mathematics/bool3.md) | bool3 result of the componentwise equality. |

## operator ==(bool3, bool)

Returns the result of a componentwise equality operation on a bool3 vector and a bool value.

```csharp
public static bool3 operator ==(bool3 lhs, bool rhs)
```

### Parameters

**** (\[bool3]\(/engine/6000.7/script-reference/unity/mathematics/bool3)): Left hand side bool3 to use to compute componentwise equality.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Right hand side bool to use to compute componentwise equality.

### Returns

| Type                                                                | Description                                 |
| ------------------------------------------------------------------- | ------------------------------------------- |
| [bool3](/engine/6000.7/script-reference/unity/mathematics/bool3.md) | bool3 result of the componentwise equality. |

## operator ==(bool, bool3)

Returns the result of a componentwise equality operation on a bool value and a bool3 vector.

```csharp
public static bool3 operator ==(bool lhs, bool3 rhs)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Left hand side bool to use to compute componentwise equality.**** (\[bool3]\(/engine/6000.7/script-reference/unity/mathematics/bool3)): Right hand side bool3 to use to compute componentwise equality.

### Returns

| Type                                                                | Description                                 |
| ------------------------------------------------------------------- | ------------------------------------------- |
| [bool3](/engine/6000.7/script-reference/unity/mathematics/bool3.md) | bool3 result of the componentwise equality. |
