# Equals

> Compares two vectors to each other and evaluates if they are equal.

## Definition

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

## Equals(Object)

Compares two vectors to each other and evaluates if they are equal.

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

### Parameters

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

### Returns

| Type                                                          | Description                                                                                                                                       |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if `other` is a [Vector4](/engine/6000.7/script-reference/unityengine/vector4.md) that is exactly equal to this vector, otherwise `false`. |

### 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(Vector4)

Compares two vectors to each other and evaluates if they are equal.

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

### Parameters

**** (\[Vector4]\(/engine/6000.7/script-reference/unityengine/vector4)): The vector to compare against this vector.

### Returns

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

### 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(Vector4)

Compares two vectors to each other and evaluates if they are equal.

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

### Parameters

**** (\[Vector4]\(/engine/6000.7/script-reference/unityengine/vector4)): The vector to compare against this vector.

### Returns

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

### 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.
