MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / coordinate

Function coordinate

graph-ui/src/galaxy/organic-clusters.ts:102–106  ·  view source on GitHub ↗
(axis: string)

Source from the content-addressed store, hash-verified

100/** Bell-shaped seeded noise avoids shells, grids and concentric rings. */
101function cloudPoint(key: string, scale: number): Point {
102 const coordinate = (axis: string) => {
103 let sum = 0;
104 for (let i = 0; i < 6; i++) sum += hash(`${key}:${axis}:${i}`) / 0x100000000;
105 return (sum - 3) * scale;
106 };
107 return { x: coordinate('x'), y: coordinate('y'), z: coordinate('z') };
108}
109

Callers 1

cloudPointFunction · 0.85

Calls 1

hashFunction · 0.70

Tested by

no test coverage detected