# halves

function in `@dioramajs/media/panorama`

```ts
import { halves } from '@dioramajs/media/panorama'
```

Tangents of half the view across and up a box `width` by `height` for a vertical field of view
`fov` in degrees. A portrait box sees a little wider, so a phone is not looking through a slit;
the width never takes more than 110°.

```ts
function halves(fov: number, width: number, height: number): [number, number]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `fov` | `number` |  |
| `width` | `number` |  |
| `height` | `number` |  |

Defined in [packages/media/src/panorama.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/media/src/panorama.ts#L160).
