# operator -

> Returns the result of a componentwise subtraction operation on two float2x2 matrices.

## Definition

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

## operator -(float2x2, float2x2)

Returns the result of a componentwise subtraction operation on two float2x2 matrices.

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

### Parameters

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

### Returns

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

## operator -(float2x2, float)

Returns the result of a componentwise subtraction operation on a float2x2 matrix and a float value.

```csharp
public static float2x2 operator -(float2x2 lhs, float rhs)
```

### Parameters

**** (\[float2x2]\(/engine/6000.6/script-reference/unity/mathematics/float2x2)): Left hand side float2x2 to use to compute componentwise subtraction.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Right hand side float to use to compute componentwise subtraction.

### Returns

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

## operator -(float, float2x2)

Returns the result of a componentwise subtraction operation on a float value and a float2x2 matrix.

```csharp
public static float2x2 operator -(float lhs, float2x2 rhs)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Left hand side float to use to compute componentwise subtraction.**** (\[float2x2]\(/engine/6000.6/script-reference/unity/mathematics/float2x2)): Right hand side float2x2 to use to compute componentwise subtraction.

### Returns

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