# operator -(int2)

> Returns the result of a componentwise subtraction operation on two int2 vectors.

## Definition

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

```csharp
public static int2 operator -(int2 val)
```

### Parameters

**** (\[int2]\(/engine/6000.5/script-reference/unity/mathematics/int2)):&#x20;

### Returns

| Type                                                              | Description                                   |
| ----------------------------------------------------------------- | --------------------------------------------- |
| [int2](/engine/6000.5/script-reference/unity/mathematics/int2.md) | int2 result of the componentwise subtraction. |
