Is there a way to geometrically calculate the intersection points of the line and an arbitrary graphic path? I know where all the lines and curves are in the way, and I use the HTML5 canvas element if that helps anyone. Basically, I have access to all canvas drawing commands and their arguments. For example, if the API was called using lineTo, then moveTo, then the arc I have all this information. Each API call is stored in an array. I have a path definition, I just want to find out where the line crosses the path. Below is an image showing an example of the points I need to find.
alt text http://cl.ly/3228b0e7ea32b172e960/content
Thanks for any help! Again, I would rather do it geometrically than a pixel if possible.
javascript algorithm geometry canvas computational-geometry
devongovett
source share