MCPcopy Create free account
hub / github.com/ThatOpen/engine_clay / squaredMagnitude

Method squaredMagnitude

packages/clay/src/utils/vector.ts:47–50  ·  view source on GitHub ↗
(vector: number[])

Source from the content-addressed store, hash-verified

45 }
46
47 static squaredMagnitude(vector: number[]) {
48 const [x, y, z] = vector;
49 return x * x + y * y + z * z;
50 }
51
52 static add(...vectors: number[][]) {
53 const result = [0, 0, 0];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected