MCPcopy
hub / github.com/cpaczek/skylight / cameraWorldAim

Method cameraWorldAim

tracker/src/loop.ts:1173–1179  ·  view source on GitHub ↗

Where the camera is actually looking in the world (for the UI overlay).

()

Source from the content-addressed store, hash-verified

1171
1172 /** Where the camera is actually looking in the world (for the UI overlay). */
1173 cameraWorldAim(): AzEl | null {
1174 const pose = this.driver().getPose();
1175 if (!pose) return null;
1176 const cfg = this.cfg();
1177 const w = worldFromMount(pose, cfg.mount);
1178 return { ...w, slantM: 0 };
1179 }
1180}
1181
1182function clamp(v: number, lo: number, hi: number): number {

Callers

nothing calls this directly

Calls 3

cfgMethod · 0.95
worldFromMountFunction · 0.85
getPoseMethod · 0.65

Tested by

no test coverage detected