# implicit operator double2

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

## Definition

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

## implicit operator double2(double)

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

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

### Parameters

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

### Returns

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

## implicit operator double2(double)

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

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

### Parameters

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

### Returns

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

## implicit operator double2(double)

Implicitly converts a int2 vector to a double2 vector by componentwise conversion.

```csharp
public static implicit operator double2(int2 v)
```

### Parameters

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

### Returns

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

## implicit operator double2(double)

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

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

### Parameters

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

### Returns

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

## implicit operator double2(double)

Implicitly converts a uint2 vector to a double2 vector by componentwise conversion.

```csharp
public static implicit operator double2(uint2 v)
```

### Parameters

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

### Returns

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

## implicit operator double2(double)

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

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

### Parameters

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

### Returns

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

## implicit operator double2(double)

Implicitly converts a half2 vector to a double2 vector by componentwise conversion.

```csharp
public static implicit operator double2(half2 v)
```

### Parameters

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

### Returns

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

## implicit operator double2(double)

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

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

### Parameters

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

### Returns

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

## implicit operator double2(double)

Implicitly converts a float2 vector to a double2 vector by componentwise conversion.

```csharp
public static implicit operator double2(float2 v)
```

### Parameters

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

### Returns

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