# trace

function in `@dioramajs/text/lens`

```ts
import { trace } from '@dioramajs/text/lens'
```

Where a ray from a camera `distance` px above the page, aimed at page point `x0` from the lens
axis, meets the page through the lens (2D, in the plane of the axis). NaN when the glass sends it
elsewhere (the edge, or total internal reflection).

```ts
function trace(
  aperture: number,
  thickness: number,
  height: number,
  ior: number,
  distance: number,
  x0: number,
): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `aperture` | `number` |  |
| `thickness` | `number` |  |
| `height` | `number` |  |
| `ior` | `number` |  |
| `distance` | `number` |  |
| `x0` | `number` |  |

Defined in [packages/text/src/lens.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/lens.ts#L104).
