# operator ==

> Returns the result of a componentwise equality operation on two bool4x4 matrices.

## Definition

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

## operator ==(bool4x4, bool4x4)

Returns the result of a componentwise equality operation on two bool4x4 matrices.

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

### Parameters

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

### Returns

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

## operator ==(bool4x4, bool)

Returns the result of a componentwise equality operation on a bool4x4 matrix and a bool value.

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

### Parameters

**** (\[bool4x4]\(/engine/6000.5/script-reference/unity/mathematics/bool4x4)): Left hand side bool4x4 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                                   |
| ----------------------------------------------------------------------- | --------------------------------------------- |
| [bool4x4](/engine/6000.5/script-reference/unity/mathematics/bool4x4.md) | bool4x4 result of the componentwise equality. |

## operator ==(bool, bool4x4)

Returns the result of a componentwise equality operation on a bool value and a bool4x4 matrix.

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

### Parameters

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

### Returns

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