that's a good algorithmic problem, and not a trivial one: http://en.wikipedia.org/wiki/Convex_hull
but if you draw the polygon based on the order in which the points were clicked, (assuming the user will automatically generate a convex polygon) then it will be a lot simpler. On 12/20/06, bmsterling <[EMAIL PROTECTED]> wrote:
the while loop was just to slow down, something was not working correctly at one point and I never took it out. the canvas is just a reference to the the object that is set at about line 64. For some reason when I did it that way it did not work, only worked when I wrapped it like I did. But all that would have been cleaned up once I figured out the sorting of the arrays. -- View this message in context: http://www.nabble.com/logic-help-tf2862831.html#a8000908 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
