MCPcopy Create free account
hub / github.com/cpaczek/skylight / clamp01

Method clamp01

tracker/src/loop.ts:939–939  ·  view source on GitHub ↗
(v: number)

Source from the content-addressed store, hash-verified

937 const frameT = (frameArrivedAt > 0 ? frameArrivedAt : preT) - cfg.vision.encodeLagMs;
938 const sign = Math.sign(cfg.mount.panGain) || 1;
939 const clamp01 = (v: number) => Math.min(1, Math.max(0, v));
940
941 // Where should the plane be in THIS frame? The locked track's WORLD
942 // position advanced to frame time (world-frame stickiness — it moves

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected