# operator %

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

## Definition

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

## operator %(uint3, uint3)

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

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

### Parameters

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

### Returns

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

## operator %(uint3, uint)

Returns the result of a componentwise modulus operation on a uint3 vector and a uint value.

```csharp
public static uint3 operator %(uint3 lhs, uint rhs)
```

### Parameters

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

### Returns

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

## operator %(uint, uint3)

Returns the result of a componentwise modulus operation on a uint value and a uint3 vector.

```csharp
public static uint3 operator %(uint lhs, uint3 rhs)
```

### Parameters

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

### Returns

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