# explicit operator double4

> Explicitly converts a single bool value to a double4 vector by converting it to double and assigning it to every component.

## Definition

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

## explicit operator double4(double)

Explicitly converts a single bool value to a double4 vector by converting it to double and assigning it to every component.

```csharp
public static explicit operator double4(bool v)
```

### Parameters

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

### Returns

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

## explicit operator double4(double)

Explicitly converts a bool4 vector to a double4 vector by componentwise conversion.

```csharp
public static explicit operator double4(bool4 v)
```

### Parameters

**** (\[bool4]\(/engine/6000.5/script-reference/unity/mathematics/bool4)): bool4 to convert to double4

### Returns

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