Problem 60999. Total Area Covered by Overlapping Polygons
Given a variable length set of polygon vertex coordinates, compute the total area covered. For example, take two polygons with the following vertex coordinates:
p1=[0.2,0.2; 0.5,0.2; 0.5,0.5; 0.2,0.5];
p2=[0.4,0.4; 0.8,0.4; 0.8,0.8; 0.4,0.8];
The total area covered is the area of the first polygon plus the area of the second polygon minus the overlap. This comes out to 0.24 units.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers5
Suggested Problems
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!