MCPcopy Index your code
hub / github.com/microsoft/SandDance / projection

Function projection

docs/app/js/sanddance-app.js:71865–71876  ·  view source on GitHub ↗
(out, width, height)

Source from the content-addressed store, hash-verified

71863 return out;
71864}
71865function projection(out, width, height) {
71866 out[0] = 2 / width;
71867 out[1] = 0;
71868 out[2] = 0;
71869 out[3] = 0;
71870 out[4] = -2 / height;
71871 out[5] = 0;
71872 out[6] = -1;
71873 out[7] = 1;
71874 out[8] = 1;
71875 return out;
71876}
71877function str(a) {
71878 return "mat3(" + a[0] + ", " + a[1] + ", " + a[2] + ", " + a[3] + ", " + a[4] + ", " + a[5] + ", " + a[6] + ", " + a[7] + ", " + a[8] + ")";
71879}

Callers 1

sanddance-app.jsFile · 0.70

Calls 2

createFunction · 0.70
projectionMutatorFunction · 0.70

Tested by

no test coverage detected