MCPcopy
hub / github.com/spritejs/spritejs / line

Function line

docs/demo/spritejs.js:14603–14605  ·  view source on GitHub ↗
(x1, y1, x2, y2)

Source from the content-addressed store, hash-verified

14601}
14602
14603function line(x1, y1, x2, y2) {
14604 return ['C', x1, y1, x2, y2, x2, y2];
14605}
14606
14607function quadratic(x1, y1, cx, cy, x2, y2) {
14608 return ['C', x1 / 3 + 2 / 3 * cx, y1 / 3 + 2 / 3 * cy, x2 / 3 + 2 / 3 * cx, y2 / 3 + 2 / 3 * cy, x2, y2];

Callers 1

normalizeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected