# operator ==

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

## Definition

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

## operator ==(double4x2, double4x2)

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

```csharp
public static bool4x2 operator ==(double4x2 lhs, double4x2 rhs)
```

### Parameters

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

### Returns

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

## operator ==(double4x2, double)

Returns the result of a componentwise equality operation on a double4x2 matrix and a double value.

```csharp
public static bool4x2 operator ==(double4x2 lhs, double rhs)
```

### Parameters

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

### Returns

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

## operator ==(double, double4x2)

Returns the result of a componentwise equality operation on a double value and a double4x2 matrix.

```csharp
public static bool4x2 operator ==(double lhs, double4x2 rhs)
```

### Parameters

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

### Returns

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