# Equals

> Determines if the given vector is exactly equal to this vector.

## Definition

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

## Equals(Object)

Determines if the given vector is exactly equal to this vector.

```csharp
public override readonly bool Equals(object other)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The vector to compare.

### Returns

| Type                                                          | Description                                               |
| ------------------------------------------------------------- | --------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the given vector is exactly equal to this vector. |

### Remarks

Due to floating point inaccuracies, this might return false for vectors which are essentially (but not exactly) equal. Use the == operator to test two vectors for approximate equality.

## Equals(Vector2)

Checks if the given vector is exactly equal to this vector.

```csharp
public readonly bool Equals(Vector2 other)
```

### Parameters

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

### Returns

| Type                                                          | Description                                               |
| ------------------------------------------------------------- | --------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the given vector is exactly equal to this vector. |

## Equals(Vector2)

Checks if the given vector is exactly equal to this vector.

```csharp
public readonly bool Equals(in Vector2 other)
```

### Parameters

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

### Returns

| Type                                                          | Description                                               |
| ------------------------------------------------------------- | --------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the given vector is exactly equal to this vector. |
