# Sandbox.CameraComponent.GetFrustum

## Overload 1

```csharp
Frustum GetFrustum()
```

Returns the view frustum of the current screen rect.

### Returns

`Frustum`

## Overload 2

```csharp
Frustum GetFrustum(Rect screenRect)
```

Given a pixel rect return a frustum on the current camera.

### Parameters

- `screenRect` (`Rect`)

### Returns

`Frustum`

## Overload 3

```csharp
Frustum GetFrustum(Rect screenRect, Vector3 screenSize)
```

Given a pixel rect return a frustum on the current camera. Pass in 1 to ScreenSize to use normalized screen coords.

### Parameters

- `screenRect` (`Rect`)
- `screenSize` (`Vector3`)

### Returns

`Frustum`

Declared in [Sandbox.CameraComponent](/api/Sandbox.CameraComponent).
Assembly: `Sandbox.Engine`.
