![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: Polygon interact other polygonby zentara (Archbishop) |
on Oct 24, 2004 at 13:56 UTC ( #402033=note: print w/replies, xml ) | Need Help?? |
From just thinking about the problem, my first thought, is if it's polygons, then you should have the equations of the line segments which make up it's sides. All you have to do is see if any segment from polygon1 intersects any segment from polygon2. How to find the intersection of 2 lines has a well known solution, called "simultaneous equations".
I'm not really a human, but I play one on earth. flash japh
In Section
Seekers of Perl Wisdom
|
|