# operator ^

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

## Definition

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

## operator ^(bool2x3, bool2x3)

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

```csharp
public static bool2x3 operator ^(bool2x3 lhs, bool2x3 rhs)
```

### Parameters

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

### Returns

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

## operator ^(bool2x3, bool)

Returns the result of a componentwise bitwise exclusive or operation on a bool2x3 matrix and a bool value.

```csharp
public static bool2x3 operator ^(bool2x3 lhs, bool rhs)
```

### Parameters

**** (\[bool2x3]\(/engine/6000.7/script-reference/unity/mathematics/bool2x3)): Left hand side bool2x3 to use to compute componentwise bitwise exclusive or.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Right hand side bool to use to compute componentwise bitwise exclusive or.

### Returns

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

## operator ^(bool, bool2x3)

Returns the result of a componentwise bitwise exclusive or operation on a bool value and a bool2x3 matrix.

```csharp
public static bool2x3 operator ^(bool lhs, bool2x3 rhs)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Left hand side bool to use to compute componentwise bitwise exclusive or.**** (\[bool2x3]\(/engine/6000.7/script-reference/unity/mathematics/bool2x3)): Right hand side bool2x3 to use to compute componentwise bitwise exclusive or.

### Returns

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