AwtShapeExtension

object AwtShapeExtension

Collection of extensions to Java AWT meant to simplify its usage as geometric engine.

Functions

Link copied to clipboard
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.