trace function
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).
import { trace } from '@dioramajs/text/lens'. NaN when the glass sends it elsewhere (the edge, or total internal reflection).
function trace(
aperture: number,
thickness: number,
height: number,
ior: number,
distance: number,
x0: number,
): numberParameters
| Name | Type | Description |
|---|---|---|
aperture | number | |
thickness | number | |
height | number | |
ior | number | |
distance | number | |
x0 | number |
Defined in packages/text/src/lens.ts.