# operator %

> Returns the result of a componentwise modulus operation on two uint2x3 matrices.

## Definition

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

## operator %(uint2x3, uint2x3)

Returns the result of a componentwise modulus operation on two uint2x3 matrices.

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

### Parameters

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

### Returns

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

## operator %(uint2x3, uint)

Returns the result of a componentwise modulus operation on a uint2x3 matrix and a uint value.

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

### Parameters

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

## operator %(uint, uint2x3)

Returns the result of a componentwise modulus operation on a uint value and a uint2x3 matrix.

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

### Parameters

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

### Returns

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