Region

class regions.Region[source]

Bases: object

Base class for all regions.

Methods Summary

copy(self, \*\*changes) Make an independent (deep) copy.
intersection(self, other) Returns a region representing the intersection of this region with other.
symmetric_difference(self, other) Returns the union of the two regions minus any areas contained in the intersection of the two regions.
union(self, other) Returns a region representing the union of this region with other.

Methods Documentation

copy(self, **changes)[source]

Make an independent (deep) copy.

intersection(self, other)[source]

Returns a region representing the intersection of this region with other.

symmetric_difference(self, other)[source]

Returns the union of the two regions minus any areas contained in the intersection of the two regions.

union(self, other)[source]

Returns a region representing the union of this region with other.