(pt1, pt2)
| 120 | } |
| 121 | |
| 122 | function ptDist(pt1, pt2) { |
| 123 | var dx = pt1[0] - pt2[0]; |
| 124 | var dy = pt1[1] - pt2[1]; |
| 125 | return Math.sqrt(dx * dx + dy * dy); |
| 126 | } |
| 127 | |
| 128 | // last bit of filtering: clip paths that are VERY far off-screen |
| 129 | // so we don't get near the browser's hard limit (+/- 2^29 px in Chrome and FF) |
no outgoing calls
no test coverage detected
searching dependent graphs…