# bool2x2

> Constructs a bool2x2 matrix from two bool2 vectors.

## Definition

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

## bool2x2(bool2, bool2)

Constructs a bool2x2 matrix from two bool2 vectors.

```csharp
public bool2x2(bool2 c0, bool2 c1)
```

### 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.

## bool2x2(bool, bool, bool, bool)

Constructs a bool2x2 matrix from 4 bool values given in row-major order.

```csharp
public bool2x2(bool m00, bool m01, bool m10, bool m11)
```

### 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.

## bool2x2(bool)

Constructs a bool2x2 matrix from a single bool value by assigning it to every component.

```csharp
public bool2x2(bool v)
```

### Parameters

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