union

open fun union(other: Shape2d?): Shape2d

Combines two shapes together to form a single Shape2d.

It is normal to use the plus operator, which does exactly the same as this.

NOTE paths are not available for the union.

If other == null, then this is returned.