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

Function transformMat4

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

Source from the content-addressed store, hash-verified

70016 return out;
70017}
70018function transformMat4(out, a, m) {
70019 var x = a[0];
70020 var y = a[1];
70021 out[0] = m[0] * x + m[4] * y + m[12];
70022 out[1] = m[1] * x + m[5] * y + m[13];
70023 return out;
70024}
70025function rotate(out, a, b, rad) {
70026 //Translate point to the origin
70027 var p0 = a[0] - b[0], p1 = a[1] - b[1], sinC = Math.sin(rad), cosC = Math.cos(rad); //perform rotation and translate to correct position

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected