Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
export
const
crossProductVector = (a, b) => {
23
const
[ax, ay] = a;
24
const
[bx, by] = b;
25
return
ax * by - ay * bx;
26
};
27
28
export
const
distanceBetweenVectors = (a, b) => {
29
const
displacement = subtractVector(a, b);
Callers
1
ibilerp
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected