Set Operations on Regions

This Demonstration illustrates some fundamental set operations when applied to geometric regions in a plane (similar to a Venn diagram). The operations include union ⋃, intersection ⋂, set difference \, and symmetric difference Δ (analogous to XOR).
You can resize the two regions, an ellipse and a polygon, with the controls and drag the polygon using the Locator at its center.
The result of the chosen operation is the green region with the red border. Its surface area and centroid are continuously updated below the graphics.

SNAPSHOTS

  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.