# Equals

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

## Definition

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

## Equals(quaternion)

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

```csharp
public bool Equals(quaternion x)
```

### Parameters

**** (\[quaternion]\(/engine/6000.5/script-reference/unity/mathematics/quaternion)): The quaternion to compare with.

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the quaternion is equal to the input, false otherwise. |

## Equals(Object)

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

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

### Parameters

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

### Returns

| Type                                                          | Description                                                    |
| ------------------------------------------------------------- | -------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the quaternion is equal to the input, false otherwise. |
