reverse

open override fun reverse(): Segment2(source)

Reverses the segment, swapping its start and end points.

Return

A new segment with the start and end points swapped.