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

Function transformMat2

docs/app/js/sanddance-app.js:70000–70005  ·  view source on GitHub ↗
(out, a, m)

Source from the content-addressed store, hash-verified

69998 return out;
69999}
70000function transformMat2(out, a, m) {
70001 var x = a[0], y = a[1];
70002 out[0] = m[0] * x + m[2] * y;
70003 out[1] = m[1] * x + m[3] * y;
70004 return out;
70005}
70006function transformMat2d(out, a, m) {
70007 var x = a[0], y = a[1];
70008 out[0] = m[0] * x + m[2] * y + m[4];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected