# operator %

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

## Definition

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

## operator %(double3, double3)

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

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

### Parameters

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

### Returns

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

## operator %(double3, double)

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

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

### Parameters

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

### Returns

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

## operator %(double, double3)

Returns the result of a componentwise modulus 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 modulus.**** (\[double3]\(/engine/6000.7/script-reference/unity/mathematics/double3)): Right hand side double3 to use to compute componentwise modulus.

### Returns

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