path.removeSegment(index)
Remove the path segment at index.
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.