halves function
Tangents of half the view across and up a box `width` by `height` for a vertical field of view `fov` in degrees.
import { halves } from '@dioramajs/media/panorama'. A portrait box sees a little wider, so a phone is not looking through a slit; the width never takes more than 110°.
function halves(fov: number, width: number, height: number): [number, number]Parameters
| Name | Type | Description |
|---|---|---|
fov | number | |
width | number | |
height | number |
Defined in packages/media/src/panorama.ts.