addVertex

abstract fun addVertex(    index: Int,     x: Double,     y: Double): Boolean

Adds a vertex to the polygon.

Parameters

index

the index in the list of vertices where to put the new vertex

x

x coordinate

y

y coordinate