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

Function norm180

shared/src/aim.ts:32–35  ·  view source on GitHub ↗
(d: number)

Source from the content-addressed store, hash-verified

30
31/** Normalize to (-180, 180]. */
32export function norm180(d: number): number {
33 const n = norm360(d);
34 return n > 180 ? n - 360 : n;
35}
36
37export type Vec3 = [number, number, number];
38

Callers 15

autocal.test.tsFile · 0.85
pipeline.test.tsFile · 0.85
planner.test.tsFile · 0.85
approachFunction · 0.85
tickMethod · 0.85
visionTickMethod · 0.85
predictAimFunction · 0.85
trySolveMethod · 0.85
rmsUnderFunction · 0.85
velocityMethod · 0.85
updateMethod · 0.85
selectMethod · 0.85

Calls 1

norm360Function · 0.70

Tested by 1

approachFunction · 0.68