Is there is a quick way to find the intersection point of a line
segment with a given polygon. Polygon vertices is limited to max 32.
Currently I am using below line segment intersection algorithm from Graphics Gems III. Algorithms takes two lines at a time. I am just looping the line segment over each polygon edges.
http://www.realtimerendering.com/...rces/GraphicsGems/gemsii/xlines.c
Wondering if there is a better way of doing it?
Thanks!