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

Function getZeroMatrix

docs/app/js/sanddance-app.js:71230–71246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71228let ZERO_MATRIX3;
71229let IDENTITY_MATRIX3;
71230function getZeroMatrix() {
71231 if (!ZERO_MATRIX3) {
71232 ZERO_MATRIX3 = new Matrix3([
71233 0,
71234 0,
71235 0,
71236 0,
71237 0,
71238 0,
71239 0,
71240 0,
71241 0
71242 ]);
71243 Object.freeze(ZERO_MATRIX3);
71244 }
71245 return ZERO_MATRIX3;
71246}
71247function getIdentityMatrix() {
71248 if (!IDENTITY_MATRIX3) {
71249 IDENTITY_MATRIX3 = new Matrix3();

Callers 2

ZEROMethod · 0.70
ZEROMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected