# Sandbox.Screen.CreateVerticalFieldOfView

## Overload 1

```csharp
static float CreateVerticalFieldOfView(float fieldOfView)
```

Converts a vertical field of view to a horizontal field of view based on the screen aspect ratio.

### Parameters

- `fieldOfView` (`float`)

### Returns

`float`

## Overload 2

```csharp
static float CreateVerticalFieldOfView(float fieldOfView, float aspectRatio)
```

Converts a vertical field of view to a horizontal field of view based on the given aspect ratio.

### Parameters

- `fieldOfView` (`float`)
- `aspectRatio` (`float`)

### Returns

`float`

Declared in [Sandbox.Screen](/api/Sandbox.Screen).
Assembly: `Sandbox.Engine`.
