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

Function cross

graph-ui/src/galaxy/camera-frame.test.ts:167–171  ·  view source on GitHub ↗
(a: Vector3Like, b: Vector3Like)

Source from the content-addressed store, hash-verified

165 ({ x: a.x - b.x, y: a.y - b.y, z: a.z - b.z });
166 const dot = (a: Vector3Like, b: Vector3Like): number => a.x * b.x + a.y * b.y + a.z * b.z;
167 const cross = (a: Vector3Like, b: Vector3Like): Vector3Like => ({
168 x: a.y * b.z - a.z * b.y,
169 y: a.z * b.x - a.x * b.z,
170 z: a.x * b.y - a.y * b.x,
171 });
172 // Dieselbe Basis, die three aus lookAt baut: z zurueck zur Kamera, x =
173 // up x z, y = z x x.
174 const zAxis = fit.normal;

Callers 1

projectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected