Large worlds · interface
CellStream
Explained in Coordinates and units.
interface CellStreamimport type { CellStream } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
storereadonly | CellStore | |
sizereadonly | number | |
radiusreadonly | number | |
hysteresisreadonly | number | |
originreadonly | Float64Array | Where the predicted views' origin is, in absolute world coordinates.MoreA view matrix is So the views are render-space, relative to this, and the stream adds it back. Zero by default, which is what every consumer that fits inside single precision already had. |
lastWantedreadonly | Map<number, number> | Cell identifier to the frame it was last wanted. What the hysteresis counts against. |
frame | number | Pumps so far. Monotonic, and the only clock this has. |
gridreadonly | CellGrid | |
projectionreadonly | ArrayLike<number> | null | The caller's own array, read on every predicted frame — so a lens that zooms or pulls its far plane in is followed without telling the stream. |