Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Points, Lines. Polygons OO myby SilverB1rd (Scribe) |
on Aug 31, 2001 at 19:00 UTC ( [id://109412]=note: print w/replies, xml ) | Need Help?? |
Based on my game programing experience (not alot) with collision detection one of the best ways to test for intersection is to brake the polygon into triangles and then test each to see if the point is inside it.
------
In Section
Seekers of Perl Wisdom
|
|