<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Vector2](./server.vector2.md) &gt; [equals](./server.vector2.equals.md)

## Vector2.equals() method

Checks if the current vector is approximately equal to another vector.

**Signature:**

```typescript
equals(vector2: Vector2): boolean;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

vector2


</td><td>

[Vector2](./server.vector2.md)


</td><td>

The vector to compare to the current vector.


</td></tr>
</tbody></table>
**Returns:**

boolean

`true` if the two vectors are equal, `false` otherwise.

