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

Function sub

graph-ui/src/galaxy/path-frame.ts:33–33  ·  view source on GitHub ↗
(a: Vec3, b: Vec3)

Source from the content-addressed store, hash-verified

31export const PATH_FRAME_FILL = 0.25;
32
33const sub = (a: Vec3, b: Vec3): Vec3 => ({ x: a.x - b.x, y: a.y - b.y, z: a.z - b.z });
34const dot = (a: Vec3, b: Vec3) => a.x * b.x + a.y * b.y + a.z * b.z;
35const cross = (a: Vec3, b: Vec3): Vec3 => ({ x: a.y * b.z - a.z * b.y, y: a.z * b.x - a.x * b.z, z: a.x * b.y - a.y * b.x });
36const scale = (a: Vec3, factor: number): Vec3 => ({ x: a.x * factor, y: a.y * factor, z: a.z * factor });

Callers 1

pathFrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected