# operator -

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

## Definition

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

## operator -(double4x4, double4x4)

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

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

### Parameters

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

### Returns

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

## operator -(double4x4, double)

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

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

### Parameters

**** (\[double4x4]\(/engine/6000.5/script-reference/unity/mathematics/double4x4)): Left hand side double4x4 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                                        |
| --------------------------------------------------------------------------- | -------------------------------------------------- |
| [double4x4](/engine/6000.5/script-reference/unity/mathematics/double4x4.md) | double4x4 result of the componentwise subtraction. |

## operator -(double, double4x4)

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

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

### Parameters

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

### Returns

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