# normalize

> Returns a normalized version of the float2 vector x by scaling it by 1 / length(x).

## Definition

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

## normalize(float2)

Returns a normalized version of the float2 vector x by scaling it by 1 / length(x).

```csharp
public static float2 normalize(float2 x)
```

### Parameters

**** (\[float2]\(/engine/6000.5/script-reference/unity/mathematics/float2)): Vector to normalize.

### Returns

| Type                                                                  | Description            |
| --------------------------------------------------------------------- | ---------------------- |
| [float2](/engine/6000.5/script-reference/unity/mathematics/float2.md) | The normalized vector. |

## normalize(float3)

Returns a normalized version of the float3 vector x by scaling it by 1 / length(x).

```csharp
public static float3 normalize(float3 x)
```

### Parameters

**** (\[float3]\(/engine/6000.5/script-reference/unity/mathematics/float3)): Vector to normalize.

### Returns

| Type                                                                  | Description            |
| --------------------------------------------------------------------- | ---------------------- |
| [float3](/engine/6000.5/script-reference/unity/mathematics/float3.md) | The normalized vector. |

## normalize(float4)

Returns a normalized version of the float4 vector x by scaling it by 1 / length(x).

```csharp
public static float4 normalize(float4 x)
```

### Parameters

**** (\[float4]\(/engine/6000.5/script-reference/unity/mathematics/float4)): Vector to normalize.

### Returns

| Type                                                                  | Description            |
| --------------------------------------------------------------------- | ---------------------- |
| [float4](/engine/6000.5/script-reference/unity/mathematics/float4.md) | The normalized vector. |

## normalize(double2)

Returns a normalized version of the double2 vector x by scaling it by 1 / length(x).

```csharp
public static double2 normalize(double2 x)
```

### Parameters

**** (\[double2]\(/engine/6000.5/script-reference/unity/mathematics/double2)): Vector to normalize.

### Returns

| Type                                                                    | Description            |
| ----------------------------------------------------------------------- | ---------------------- |
| [double2](/engine/6000.5/script-reference/unity/mathematics/double2.md) | The normalized vector. |

## normalize(double3)

Returns a normalized version of the double3 vector x by scaling it by 1 / length(x).

```csharp
public static double3 normalize(double3 x)
```

### Parameters

**** (\[double3]\(/engine/6000.5/script-reference/unity/mathematics/double3)): Vector to normalize.

### Returns

| Type                                                                    | Description            |
| ----------------------------------------------------------------------- | ---------------------- |
| [double3](/engine/6000.5/script-reference/unity/mathematics/double3.md) | The normalized vector. |

## normalize(double4)

Returns a normalized version of the double4 vector x by scaling it by 1 / length(x).

```csharp
public static double4 normalize(double4 x)
```

### Parameters

**** (\[double4]\(/engine/6000.5/script-reference/unity/mathematics/double4)): Vector to normalize.

### Returns

| Type                                                                    | Description            |
| ----------------------------------------------------------------------- | ---------------------- |
| [double4](/engine/6000.5/script-reference/unity/mathematics/double4.md) | The normalized vector. |

## normalize(quaternion)

Returns a normalized version of a quaternion q by scaling it by 1 / length(q).

```csharp
public static quaternion normalize(quaternion q)
```

### Parameters

**** (\[quaternion]\(/engine/6000.5/script-reference/unity/mathematics/quaternion)): The quaternion to normalize.

### Returns

| Type                                                                          | Description                |
| ----------------------------------------------------------------------------- | -------------------------- |
| [quaternion](/engine/6000.5/script-reference/unity/mathematics/quaternion.md) | The normalized quaternion. |
