Zones and intersection
svk-man opened this issue · comments
Good afternoon!
I need to draw three polygons - outer and two inner ones. They can be edited.
All three polygons form zones. I marked them - 1, 2, 3.
I need to be able to switch between zones and look for the intersection of each of the zones with a moving point, for example, the mouse cursor.
Can you please tell me if your library will help me?
There are a number of ways this can be achieved. Check out http://paperjs.org/reference/mouseevent/ if you are specifically interested in detecting mouse enter/exit on the items, or http://paperjs.org/reference/hitresult/ for detecting intersections with any point that you want.
@pearcetm Thank you for the answer!
I believe that your question has been resolved, so I close it.