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

Function cartesianNormalizeInPlace

docs/tests/v2/es6/js/sanddance.js:112845–112848  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

112843
112844
112845function cartesianNormalizeInPlace(d) {
112846 var l = (0, _math.sqrt)(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
112847 d[0] /= l, d[1] /= l, d[2] /= l;
112848}
112849},{"./math.js":"JQgf"}],"rw3L":[function(require,module,exports) {
112850"use strict";
112851

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected