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

Method dot

docs/app/js/sanddance-app.js:69179–69183  ·  view source on GitHub ↗
(mathArray)

Source from the content-addressed store, hash-verified

69177 return (0, _validators.checkNumber)(length);
69178 }
69179 dot(mathArray) {
69180 let product = 0;
69181 for(let i = 0; i < this.ELEMENTS; ++i)product += this[i] * mathArray[i];
69182 return (0, _validators.checkNumber)(product);
69183 }
69184 normalize() {
69185 const length = this.magnitude();
69186 if (length !== 0) for(let i = 0; i < this.ELEMENTS; ++i)this[i] /= length;

Callers 3

dotMethod · 0.45
sanddance-app.jsFile · 0.45
getFrustumPlanesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected