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

Function fromTranslation

docs/app/js/sanddance-app.js:71760–71771  ·  view source on GitHub ↗
(out, v)

Source from the content-addressed store, hash-verified

71758 return out;
71759}
71760function fromTranslation(out, v) {
71761 out[0] = 1;
71762 out[1] = 0;
71763 out[2] = 0;
71764 out[3] = 0;
71765 out[4] = 1;
71766 out[5] = 0;
71767 out[6] = v[0];
71768 out[7] = v[1];
71769 out[8] = 1;
71770 return out;
71771}
71772function fromRotation(out, rad) {
71773 var s = Math.sin(rad), c = Math.cos(rad);
71774 out[0] = c;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected