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

Function transformMat2d

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

Source from the content-addressed store, hash-verified

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];
70009 out[1] = m[1] * x + m[3] * y + m[5];
70010 return out;
70011}
70012function transformMat3(out, a, m) {
70013 var x = a[0], y = a[1];
70014 out[0] = m[0] * x + m[3] * y + m[6];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected