# radians

> Returns the result of converting a float value from degrees to radians.

## Definition

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

## radians(float)

Returns the result of converting a float value from degrees to radians.

```csharp
public static float radians(float x)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Angle in degrees.

### Returns

| Type                                                          | Description                 |
| ------------------------------------------------------------- | --------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | Angle converted to radians. |

## radians(float2)

Returns the result of a componentwise conversion of a float2 vector from degrees to radians.

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

### Parameters

**** (\[float2]\(/engine/6000.6/script-reference/unity/mathematics/float2)): Vector containing angles in degrees.

### Returns

| Type                                                                  | Description                                    |
| --------------------------------------------------------------------- | ---------------------------------------------- |
| [float2](/engine/6000.6/script-reference/unity/mathematics/float2.md) | Vector containing angles converted to radians. |

## radians(float3)

Returns the result of a componentwise conversion of a float3 vector from degrees to radians.

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

### Parameters

**** (\[float3]\(/engine/6000.6/script-reference/unity/mathematics/float3)): Vector containing angles in degrees.

### Returns

| Type                                                                  | Description                                    |
| --------------------------------------------------------------------- | ---------------------------------------------- |
| [float3](/engine/6000.6/script-reference/unity/mathematics/float3.md) | Vector containing angles converted to radians. |

## radians(float4)

Returns the result of a componentwise conversion of a float4 vector from degrees to radians.

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

### Parameters

**** (\[float4]\(/engine/6000.6/script-reference/unity/mathematics/float4)): Vector containing angles in degrees.

### Returns

| Type                                                                  | Description                                    |
| --------------------------------------------------------------------- | ---------------------------------------------- |
| [float4](/engine/6000.6/script-reference/unity/mathematics/float4.md) | Vector containing angles converted to radians. |

## radians(double)

Returns the result of converting a float value from degrees to radians.

```csharp
public static double radians(double x)
```

### Parameters

**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): Angle in degrees.

### Returns

| Type                                                           | Description                 |
| -------------------------------------------------------------- | --------------------------- |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | Angle converted to radians. |

## radians(double2)

Returns the result of a componentwise conversion of a float2 vector from degrees to radians.

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

### Parameters

**** (\[double2]\(/engine/6000.6/script-reference/unity/mathematics/double2)): Vector containing angles in degrees.

### Returns

| Type                                                                    | Description                                    |
| ----------------------------------------------------------------------- | ---------------------------------------------- |
| [double2](/engine/6000.6/script-reference/unity/mathematics/double2.md) | Vector containing angles converted to radians. |

## radians(double3)

Returns the result of a componentwise conversion of a float3 vector from degrees to radians.

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

### Parameters

**** (\[double3]\(/engine/6000.6/script-reference/unity/mathematics/double3)): Vector containing angles in degrees.

### Returns

| Type                                                                    | Description                                    |
| ----------------------------------------------------------------------- | ---------------------------------------------- |
| [double3](/engine/6000.6/script-reference/unity/mathematics/double3.md) | Vector containing angles converted to radians. |

## radians(double4)

Returns the result of a componentwise conversion of a float4 vector from degrees to radians.

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

### Parameters

**** (\[double4]\(/engine/6000.6/script-reference/unity/mathematics/double4)): Vector containing angles in degrees.

### Returns

| Type                                                                    | Description                                    |
| ----------------------------------------------------------------------- | ---------------------------------------------- |
| [double4](/engine/6000.6/script-reference/unity/mathematics/double4.md) | Vector containing angles converted to radians. |
