Point in Poly
dsc at swcp.com
Wed May 29 11:44:53 EDT 2013
I like the idea of trying to get within() to work.
But if that does not work, try computing.
Consider a horizontal line through the point. Find the points where it crosses the line segments of the sides. (Take care of the special case of a line segment being on your horizontal line.) Count the points to the left of your point. If it is odd, then the point is inside.
On May 29, 2013, at 8:17 AM, Ray Horsley wrote:
> Is there a way to determine if a point is inside of a polygon graphic, and not necessarily inside the graphic's containing rectangle?
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode