# operator -

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

## Definition

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

## operator -(uint2, uint2)

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

```csharp
public static uint2 operator -(uint2 lhs, uint2 rhs)
```

### Parameters

**** (\[uint2]\(/engine/6000.7/script-reference/unity/mathematics/uint2)): Left hand side uint2 to use to compute componentwise subtraction.**** (\[uint2]\(/engine/6000.7/script-reference/unity/mathematics/uint2)): Right hand side uint2 to use to compute componentwise subtraction.

### Returns

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

## operator -(uint2, uint)

Returns the result of a componentwise subtraction operation on a uint2 vector and a uint value.

```csharp
public static uint2 operator -(uint2 lhs, uint rhs)
```

### Parameters

**** (\[uint2]\(/engine/6000.7/script-reference/unity/mathematics/uint2)): Left hand side uint2 to use to compute componentwise subtraction.**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Right hand side uint to use to compute componentwise subtraction.

### Returns

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

## operator -(uint, uint2)

Returns the result of a componentwise subtraction operation on a uint value and a uint2 vector.

```csharp
public static uint2 operator -(uint lhs, uint2 rhs)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Left hand side uint to use to compute componentwise subtraction.**** (\[uint2]\(/engine/6000.7/script-reference/unity/mathematics/uint2)): Right hand side uint2 to use to compute componentwise subtraction.

### Returns

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