# operator %

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

## Definition

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

## operator %(int3, int3)

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

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

### Parameters

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

### Returns

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

## operator %(int3, int)

Returns the result of a componentwise modulus operation on an int3 vector and an int value.

```csharp
public static int3 operator %(int3 lhs, int rhs)
```

### Parameters

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

### Returns

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

## operator %(int, int3)

Returns the result of a componentwise modulus operation on an int value and an int3 vector.

```csharp
public static int3 operator %(int lhs, int3 rhs)
```

### Parameters

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

### Returns

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