MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / cartesianNormalizeInPlace

Function cartesianNormalizeInPlace

client_dist/vendor.js:7250–7253  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

7248
7249// TODO return d
7250function cartesianNormalizeInPlace(d) {
7251 var l = Object(_math__WEBPACK_IMPORTED_MODULE_0__["sqrt"])(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
7252 d[0] /= l, d[1] /= l, d[2] /= l;
7253}
7254
7255
7256/***/ }),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected