(i, j int)
| 355 | } |
| 356 | |
| 357 | func (q SweepEvents) Swap(i, j int) { |
| 358 | q[i], q[j] = q[j], q[i] |
| 359 | } |
| 360 | |
| 361 | // AddPathEndpoints adds all line segments of p to the queue q. The first command is converted to a MoveToCmd and any CloseCmd that |
| 362 | // is not at the end is converted to a LineToCmd. |