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

Method dot

packages/clay/src/utils/vector.ts:25–27  ·  view source on GitHub ↗
(v1: number[], v2: number[])

Source from the content-addressed store, hash-verified

23 }
24
25 static dot(v1: number[], v2: number[]) {
26 return v1[0] * v2[0] + v1[1] * v2[1] + v1[2] * v2[2];
27 }
28
29 static multiply(v1: number[], v2: number[]) {
30 const x = v1[1] * v2[2] - v1[2] * v2[1];

Callers 3

getRotationMethod · 0.80
addMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected