<!-- 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; [min](./server.vector2.min.md)

## Vector2.min() method

Sets each component of the vector to the minimum of the current vector and another vector.

**Signature:**

```typescript
min(vector2: Vector2): Vector2;
```

## 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:**

[Vector2](./server.vector2.md)

The current vector.

