# implicit operator double4

> Implicitly converts a single double value to a double4 vector by assigning it to every component.

## Definition

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

## implicit operator double4(double)

Implicitly converts a single double value to a double4 vector by assigning it to every component.

```csharp
public static implicit operator double4(double v)
```

### Parameters

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

### Returns

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

## implicit operator double4(double)

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

```csharp
public static implicit operator double4(int v)
```

### Parameters

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

### Returns

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

## implicit operator double4(double)

Implicitly converts a int4 vector to a double4 vector by componentwise conversion.

```csharp
public static implicit operator double4(int4 v)
```

### Parameters

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

### Returns

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

## implicit operator double4(double)

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

```csharp
public static implicit operator double4(uint v)
```

### Parameters

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

### Returns

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

## implicit operator double4(double)

Implicitly converts a uint4 vector to a double4 vector by componentwise conversion.

```csharp
public static implicit operator double4(uint4 v)
```

### Parameters

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

### Returns

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

## implicit operator double4(double)

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

```csharp
public static implicit operator double4(half v)
```

### Parameters

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

### Returns

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

## implicit operator double4(double)

Implicitly converts a half4 vector to a double4 vector by componentwise conversion.

```csharp
public static implicit operator double4(half4 v)
```

### Parameters

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

### Returns

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

## implicit operator double4(double)

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

```csharp
public static implicit operator double4(float v)
```

### Parameters

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

### Returns

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

## implicit operator double4(double)

Implicitly converts a float4 vector to a double4 vector by componentwise conversion.

```csharp
public static implicit operator double4(float4 v)
```

### Parameters

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

### Returns

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