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

Function cross

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

Source from the content-addressed store, hash-verified

217const dot = (a: Vector3Like, b: Vector3Like): number => a.x * b.x + a.y * b.y + a.z * b.z;
218
219const cross = (a: Vector3Like, b: Vector3Like): Vector3Like => ({
220 x: a.y * b.z - a.z * b.y,
221 y: a.z * b.x - a.x * b.z,
222 z: a.x * b.y - a.y * b.x,
223});
224
225const norm = (a: Vector3Like): Vector3Like => {
226 const length = Math.sqrt(dot(a, a));

Callers 1

principalFrameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected