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

Function norm

graph-ui/src/galaxy/camera-frame.ts:225–228  ·  view source on GitHub ↗
(a: Vector3Like)

Source from the content-addressed store, hash-verified

223});
224
225const norm = (a: Vector3Like): Vector3Like => {
226 const length = Math.sqrt(dot(a, a));
227 return length > 0 ? { x: a.x / length, y: a.y / length, z: a.z / length } : { x: 0, y: 0, z: 1 };
228};
229
230/**
231 * Das Vorzeichen einer Achse festnageln.

Callers 1

principalFrameFunction · 0.70

Calls 1

dotFunction · 0.70

Tested by

no test coverage detected