# operator ==

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

## Definition

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

## operator ==(float4, float4)

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

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

### Parameters

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

### Returns

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

## operator ==(float4, float)

Returns the result of a componentwise equality operation on a float4 vector and a float value.

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

### Parameters

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

### Returns

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

## operator ==(float, float4)

Returns the result of a componentwise equality operation on a float value and a float4 vector.

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

### Parameters

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

### Returns

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