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

Function vec4_transformMat2

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

Source from the content-addressed store, hash-verified

70156 return out;
70157}
70158function vec4_transformMat2(out, a, m) {
70159 const x = a[0];
70160 const y = a[1];
70161 out[0] = m[0] * x + m[2] * y;
70162 out[1] = m[1] * x + m[3] * y;
70163 out[2] = a[2];
70164 out[3] = a[3];
70165 return out;
70166}
70167function vec4_transformMat3(out, a, m) {
70168 const x = a[0];
70169 const y = a[1];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected