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

Function score

docs/app/js/sanddance-app.js:137877–137880  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

137875 return dr > 0 && dr * dr > dx * dx + dy * dy;
137876}
137877function score(node) {
137878 var a = node._, b = node.next._, ab = a.r + b.r, dx = (a.x * b.r + b.x * a.r) / ab, dy = (a.y * b.r + b.y * a.r) / ab;
137879 return dx * dx + dy * dy;
137880}
137881function Node(circle) {
137882 this._ = circle;
137883 this.next = null;

Callers 1

packEncloseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected