MCPcopy
hub / github.com/spritejs/spritejs / direction

Function direction

docs/demo/spritejs.js:15118–15123  ·  view source on GitHub ↗
(out, a, b)

Source from the content-addressed store, hash-verified

15116}
15117
15118function direction(out, a, b) {
15119 // get unit dir of two lines
15120 sub(out, a, b);
15121 normalize(out, out);
15122 return out;
15123}
15124
15125
15126

Callers

nothing calls this directly

Calls 1

normalizeFunction · 0.70

Tested by

no test coverage detected