(arcs)
| 109480 | return transformPoint(p); |
| 109481 | } |
| 109482 | function line(arcs) { |
| 109483 | var points = []; |
| 109484 | for(var i = 0, n = arcs.length; i < n; ++i)arc(arcs[i], points); |
| 109485 | if (points.length < 2) points.push(points[0]); // This should never happen per the specification. |
| 109486 | return points; |
| 109487 | } |
| 109488 | function ring(arcs) { |
| 109489 | var points = line(arcs); |
| 109490 | while(points.length < 4)points.push(points[0]); // This may happen if an arc has only two points. |