path.removeSegment(index)

Remove the path segment at index.

Negative indices are accepted; they instruct the algorithm to start looking from the end of the segments array.

The function does not return anything.