# operator ==

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

## Definition

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

## operator ==(half4, half4)

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

```csharp
public static bool4 operator ==(half4 lhs, half4 rhs)
```

### Parameters

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

### Returns

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

## operator ==(half4, half)

Returns the result of a componentwise equality operation on a half4 vector and a half value.

```csharp
public static bool4 operator ==(half4 lhs, half rhs)
```

### Parameters

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

### Returns

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

## operator ==(half, half4)

Returns the result of a componentwise equality operation on a half value and a half4 vector.

```csharp
public static bool4 operator ==(half lhs, half4 rhs)
```

### Parameters

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

### Returns

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