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

Function scaleVector

source/vector.js:4–4  ·  view source on GitHub ↗
([x, y], n)

Source from the content-addressed store, hash-verified

2// VECTOR //
3//========//
4export const scaleVector = ([x, y], n) => [x * n, y * n];
5
6export const addVector = (a, b) => {
7 const [ax, ay] = a;

Callers 2

getCornersCenterFunction · 0.90
hand.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected