# bool4x2

> Returns a bool4x2 matrix constructed from two bool4 vectors.

## Definition

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

## bool4x2(bool4, bool4)

Returns a bool4x2 matrix constructed from two bool4 vectors.

```csharp
public static bool4x2 bool4x2(bool4 c0, bool4 c1)
```

### Parameters

**** (\[bool4]\(/engine/6000.7/script-reference/unity/mathematics/bool4)): The matrix column c0 will be set to this value.**** (\[bool4]\(/engine/6000.7/script-reference/unity/mathematics/bool4)): The matrix column c1 will be set to this value.

### Returns

| Type                                                                    | Description                         |
| ----------------------------------------------------------------------- | ----------------------------------- |
| [bool4x2](/engine/6000.7/script-reference/unity/mathematics/bool4x2.md) | bool4x2 constructed from arguments. |

## bool4x2(bool, bool, bool, bool, bool, bool, bool, bool)

Returns a bool4x2 matrix constructed from from 8 bool values given in row-major order.

```csharp
public static bool4x2 bool4x2(bool m00, bool m01, bool m10, bool m11, bool m20, bool m21, bool m30, bool m31)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The matrix at row 0, column 0 will be set to this value.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The matrix at row 0, column 1 will be set to this value.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The matrix at row 1, column 0 will be set to this value.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The matrix at row 1, column 1 will be set to this value.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The matrix at row 2, column 0 will be set to this value.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The matrix at row 2, column 1 will be set to this value.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The matrix at row 3, column 0 will be set to this value.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The matrix at row 3, column 1 will be set to this value.

### Returns

| Type                                                                    | Description                         |
| ----------------------------------------------------------------------- | ----------------------------------- |
| [bool4x2](/engine/6000.7/script-reference/unity/mathematics/bool4x2.md) | bool4x2 constructed from arguments. |

## bool4x2(bool)

Returns a bool4x2 matrix constructed from a single bool value by assigning it to every component.

```csharp
public static bool4x2 bool4x2(bool v)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): bool to convert to bool4x2

### Returns

| Type                                                                    | Description      |
| ----------------------------------------------------------------------- | ---------------- |
| [bool4x2](/engine/6000.7/script-reference/unity/mathematics/bool4x2.md) | Converted value. |
