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

Method multiply

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

Source from the content-addressed store, hash-verified

27 }
28
29 static multiply(v1: number[], v2: number[]) {
30 const x = v1[1] * v2[2] - v1[2] * v2[1];
31 const y = v1[2] * v2[0] - v1[0] * v2[2];
32 const z = v1[0] * v2[1] - v1[1] * v2[0];
33 return [x, y, z];
34 }
35
36 static normalize(vector: number[]) {
37 const [x, y, z] = vector;

Callers 9

getNormalMethod · 0.95
constructorMethod · 0.80
getFacePointsMethod · 0.80
updateKnotsMethod · 0.80
getScaleMethod · 0.80
getRotationMethod · 0.80
applyTransformMethod · 0.80
updateWallsMethod · 0.80
createGeometryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected