MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / crossProductVector

Function crossProductVector

source/vector.js:22–26  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

20};
21
22export const crossProductVector = (a, b) => {
23 const [ax, ay] = a;
24 const [bx, by] = b;
25 return ax * by - ay * bx;
26};
27
28export const distanceBetweenVectors = (a, b) => {
29 const displacement = subtractVector(a, b);

Callers 1

ibilerpFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected