# bool2x4

> Returns a bool2x4 matrix constructed from four bool2 vectors.

## Definition

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

## bool2x4(bool2, bool2, bool2, bool2)

Returns a bool2x4 matrix constructed from four bool2 vectors.

```csharp
public static bool2x4 bool2x4(bool2 c0, bool2 c1, bool2 c2, bool2 c3)
```

### Parameters

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

### Returns

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

## bool2x4(bool, bool, bool, bool, bool, bool, bool, bool)

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

```csharp
public static bool2x4 bool2x4(bool m00, bool m01, bool m02, bool m03, bool m10, bool m11, bool m12, bool m13)
```

### 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 0, column 2 will be set to this value.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The matrix at row 0, column 3 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 1, column 2 will be set to this value.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The matrix at row 1, column 3 will be set to this value.

### Returns

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

## bool2x4(bool)

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

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

### Parameters

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

### Returns

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