# VerticalToHorizontalFieldOfView(float, float)

> Converts the vertical field of view (FOV) to the horizontal FOV, based on the value of the aspect ratio parameter.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static float VerticalToHorizontalFieldOfView(float verticalFieldOfView, float aspectRatio)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The vertical FOV value in degrees.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The aspect ratio value used for the conversion

### Returns

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