# Equals

> Returns true if the float2 is equal to a given float2, false otherwise.

## Definition

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

## Equals(float2)

Returns true if the float2 is equal to a given float2, false otherwise.

```csharp
public bool Equals(float2 rhs)
```

### Parameters

**** (\[float2]\(/engine/6000.6/script-reference/unity/mathematics/float2)): Right hand side argument to compare equality with.

### Returns

| Type                                                          | Description                            |
| ------------------------------------------------------------- | -------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | The result of the equality comparison. |

## Equals(Object)

Returns true if the float2 is equal to a given float2, false otherwise.

```csharp
public override bool Equals(object o)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): Right hand side argument to compare equality with.

### Returns

| Type                                                          | Description                            |
| ------------------------------------------------------------- | -------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | The result of the equality comparison. |
