# operator ==(Vector2, Vector2)

> Returns true if two vectors are approximately equal.

## Definition

* **Type:** Operator
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

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

### Parameters

**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): The first vector to compare.**** (\[Vector2]\(/engine/6000.5/script-reference/unityengine/vector2)): The second vector to compare.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

To allow for floating point inaccuracies, the two vectors are considered equal if the magnitude of their difference is less than 1e-5.

Additional Resources: [Vector2.Equals](/engine/6000.5/script-reference/unityengine/vector2/equals.md)
