reverse

open override fun reverse(): Polygon2(source)

Reverses the order of vertices, effectively reversing the orientation of the polygon.

Return

A new polygon with vertices in reverse order.