reverse reverses the order of the point in a path and returns it.
()
| 465 | |
| 466 | // reverse reverses the order of the point in a path and returns it. |
| 467 | func (p path) reverse() path { |
| 468 | for i, j := 0, len(p)-1; i < j; i, j = i+1, j-1 { |
| 469 | p[i], p[j] = p[j], p[i] |
| 470 | } |
| 471 | return p |
| 472 | } |
| 473 | |
| 474 | // connect connects the contour b with the receiver, updating the ends map. |
| 475 | // It returns a boolean indicating whether the connection was successful. |
no outgoing calls