# Min(Vector2, Vector2)

> Creates a vector that is made from the smallest components of two vectors.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static Vector2 Min(Vector2 lhs, Vector2 rhs)
```

### Parameters

**** (\[Vector2]\(/engine/6000.0/script-reference/unityengine/vector2)): The first vector to compare.**** (\[Vector2]\(/engine/6000.0/script-reference/unityengine/vector2)): The second vector to compare.

### Returns

| Type                                                              | Description                                                        |
| ----------------------------------------------------------------- | ------------------------------------------------------------------ |
| [Vector2](/engine/6000.0/script-reference/unityengine/vector2.md) | A vector that is made from the smallest components of two vectors. |

### Remarks

Additional Resources: [Vector2.Max](/engine/6000.0/script-reference/unityengine/vector2/max.md) function.

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Vector2 a = new Vector2(1, 3);
        Vector2 b = new Vector2(4, 2);
        print(Vector2.Min(a, b)); // prints (1.0,2.0)
    }
}
```
