Image

Imagekriona wrote in Imagephp 🤔curious

Points and coordinates and all that

I need a script, or the (mathematical?) insight so I can write a script, that can determine if a point is in a series of coordinates. My prime example: browsers using the <area shape="polygon"> tag.

I found this script, and it works great...for convex polygons. I could, theoretically, keep using this script and just make a series of convex polygons that add up to a more complex object... but I imagine there's an easier way.

Is there anything already written in PHP for this?