# Equals

> Checks if two matrices are equal.

## Definition

* **Type:** Method
* **Namespace:** [Unity.VectorGraphics](/engine/6000.6/script-reference/unity/vectorgraphics.md)
* **Assembly:** UnityEngine.VectorGraphicsModule

## Equals(Object)

Checks if two matrices are equal.

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

### Parameters

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

### Returns

| Type                                                          | Description                              |
| ------------------------------------------------------------- | ---------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True when the matrix is equal to "other" |

### Remarks

Used to allow Matrix3x3s to be used as keys in hash tables.

## Equals(Matrix2D)

Checks if this matrix is equal to another Matrix2D.

```csharp
public bool Equals(Matrix2D other)
```

### Parameters

**** (\[Matrix2D]\(/engine/6000.6/script-reference/unity/vectorgraphics/matrix2d)): The other matrix to compare with.

### Returns

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