Networking · interface
FixtureMath
The trigonometry, supplied rather than imported.
Explained in Networking and rollback.
interface FixtureMathimport type { FixtureMath } from '@driftengine/network';In depth
@driftengine/core is a devDependency here and must stay one. This package imports
@driftengine/entities at runtime and nothing else, which is the property that lets an
authoritative host run it with no renderer in its module graph — and boundaries.test.mjs
asserts it against the manifest rather than trusting the prose. So the fixture takes its
reproducible sine and cosine as a capability, the way everything else in this package takes its
dependencies, and a caller passes core's exactSin and exactCos.
Methods
sin
sin(radians: number): number| Parameter | Type | Description |
|---|---|---|
radians | number |
cos
cos(radians: number): number| Parameter | Type | Description |
|---|---|---|
radians | number |