vertices

fun Shape.vertices(): List<Euclidean2DPosition>

Obtains the vertices of a polygonal shape. Any curved segment connecting two points will be considered as a straight line between them.