union

abstract fun union(a: DrawnPolygon, b: DrawnPolygon, newVertexId: () -> VertexId): List<List<Vertex>>

The rings of a together with b. @throws InvalidShapeException if either is not a valid polygon.