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. Dar 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@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode