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

Method distance

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

Source from the content-addressed store, hash-verified

69166 return this.lengthSquared();
69167 }
69168 distance(mathArray) {
69169 return Math.sqrt(this.distanceSquared(mathArray));
69170 }
69171 distanceSquared(mathArray) {
69172 let length = 0;
69173 for(let i = 0; i < this.ELEMENTS; ++i){

Callers 1

distanceToMethod · 0.95

Calls 1

distanceSquaredMethod · 0.95

Tested by

no test coverage detected