# operator |

> Returns the result of a componentwise bitwise or operation on two uint2x2 matrices.

## Definition

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

## operator |(uint2x2, uint2x2)

Returns the result of a componentwise bitwise or operation on two uint2x2 matrices.

```csharp
public static uint2x2 operator |(uint2x2 lhs, uint2x2 rhs)
```

### Parameters

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

### Returns

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

## operator |(uint2x2, uint)

Returns the result of a componentwise bitwise or operation on a uint2x2 matrix and a uint value.

```csharp
public static uint2x2 operator |(uint2x2 lhs, uint rhs)
```

### Parameters

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

### Returns

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

## operator |(uint, uint2x2)

Returns the result of a componentwise bitwise or operation on a uint value and a uint2x2 matrix.

```csharp
public static uint2x2 operator |(uint lhs, uint2x2 rhs)
```

### Parameters

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

### Returns

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