# reach

function in `@dioramajs/media/frost`

```ts
import { reach } from '@dioramajs/media/frost'
```

Distance from (`x`, `y`) to the farthest corner of a `width` × `height` box, px.

```ts
function reach(x: number, y: number, width: number, height: number): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `x` | `number` |  |
| `y` | `number` |  |
| `width` | `number` |  |
| `height` | `number` |  |

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