replaceEdge

abstract fun replaceEdge(index: Int, newEdge: Segment2D<Euclidean2DPosition>): Boolean(source)

Replaces an edge of the polygon.

Parameters

index

the index of the edge to replace (edge i connects vertices i and i+1)

newEdge

the new edge