# operator -

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

## Definition

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

## operator -(double2x4, double2x4)

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

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

### Parameters

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

### Returns

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

## operator -(double2x4, double)

Returns the result of a componentwise subtraction operation on a double2x4 matrix and a double value.

```csharp
public static double2x4 operator -(double2x4 lhs, double rhs)
```

### Parameters

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

### Returns

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

## operator -(double, double2x4)

Returns the result of a componentwise subtraction operation on a double value and a double2x4 matrix.

```csharp
public static double2x4 operator -(double lhs, double2x4 rhs)
```

### Parameters

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

### Returns

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