(node)
| 13442 | } |
| 13443 | |
| 13444 | function score(node) { |
| 13445 | var a = node._, |
| 13446 | b = node.next._, |
| 13447 | ab = a.r + b.r, |
| 13448 | dx = (a.x * b.r + b.x * a.r) / ab, |
| 13449 | dy = (a.y * b.r + b.y * a.r) / ab; |
| 13450 | return dx * dx + dy * dy; |
| 13451 | } |
| 13452 | |
| 13453 | function Node(circle) { |
| 13454 | this._ = circle; |
no outgoing calls
no test coverage detected