MCPcopy Create free account
hub / github.com/microsoft/SandDance / scaleAndAdd

Function scaleAndAdd

docs/app/js/sanddance-app.js:69938–69942  ·  view source on GitHub ↗
(out, a, b, scale1)

Source from the content-addressed store, hash-verified

69936 return out;
69937}
69938function scaleAndAdd(out, a, b, scale1) {
69939 out[0] = a[0] + b[0] * scale1;
69940 out[1] = a[1] + b[1] * scale1;
69941 return out;
69942}
69943function distance(a, b) {
69944 var x = b[0] - a[0], y = b[1] - a[1];
69945 return Math.hypot(x, y);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected