reverse

abstract fun reverse(): Segment<V>(source)

Reverses the segment, swapping its start and end points.

Return

A new segment with the start and end points swapped.