# operator -

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

## Definition

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

## operator -(double3, double3)

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

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

### Parameters

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

### Returns

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

## operator -(double3, double)

Returns the result of a componentwise subtraction operation on a double3 vector and a double value.

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

### Parameters

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

## operator -(double, double3)

Returns the result of a componentwise subtraction operation on a double value and a double3 vector.

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

### Parameters

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

### Returns

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