# half3

> Returns a half3 vector constructed from three half values.

## Definition

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

## half3(half, half, half)

Returns a half3 vector constructed from three half values.

```csharp
public static half3 half3(half x, half y, half z)
```

### Parameters

**** (\[half]\(/engine/6000.5/script-reference/unity/mathematics/half)): The constructed vector's x component will be set to this value.**** (\[half]\(/engine/6000.5/script-reference/unity/mathematics/half)): The constructed vector's y component will be set to this value.**** (\[half]\(/engine/6000.5/script-reference/unity/mathematics/half)): The constructed vector's z component will be set to this value.

### Returns

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

## half3(half, half2)

Returns a half3 vector constructed from a half value and a half2 vector.

```csharp
public static half3 half3(half x, half2 yz)
```

### Parameters

**** (\[half]\(/engine/6000.5/script-reference/unity/mathematics/half)): The constructed vector's x component will be set to this value.**** (\[half2]\(/engine/6000.5/script-reference/unity/mathematics/half2)): The constructed vector's yz components will be set to this value.

### Returns

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

## half3(half2, half)

Returns a half3 vector constructed from a half2 vector and a half value.

```csharp
public static half3 half3(half2 xy, half z)
```

### Parameters

**** (\[half2]\(/engine/6000.5/script-reference/unity/mathematics/half2)): The constructed vector's xy components will be set to this value.**** (\[half]\(/engine/6000.5/script-reference/unity/mathematics/half)): The constructed vector's z component will be set to this value.

### Returns

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

## half3(half3)

Returns a half3 vector constructed from a half3 vector.

```csharp
public static half3 half3(half3 xyz)
```

### Parameters

**** (\[half3]\(/engine/6000.5/script-reference/unity/mathematics/half3)): The constructed vector's xyz components will be set to this value.

### Returns

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

## half3(half)

Returns a half3 vector constructed from a single half value by assigning it to every component.

```csharp
public static half3 half3(half v)
```

### Parameters

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

### Returns

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

## half3(float)

Returns a half3 vector constructed from a single float value by converting it to half and assigning it to every component.

```csharp
public static half3 half3(float v)
```

### Parameters

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

### Returns

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

## half3(float3)

Return a half3 vector constructed from a float3 vector by componentwise conversion.

```csharp
public static half3 half3(float3 v)
```

### Parameters

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

### Returns

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

## half3(double)

Returns a half3 vector constructed from a single double value by converting it to half and assigning it to every component.

```csharp
public static half3 half3(double v)
```

### Parameters

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

### Returns

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

## half3(double3)

Return a half3 vector constructed from a double3 vector by componentwise conversion.

```csharp
public static half3 half3(double3 v)
```

### Parameters

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

### Returns

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