Hey Ben That is creative thinking...I have no clue if it will work, I'll do a test in a minute but I like the mental process! Never thought about using angles, it won't be 360degs though if it's a polygonal shape but still it absolutely makes sense.. Heh...typical lack of basic math logic...some people blame it on good looking math teachers...in my case she was an ugly old bat, definitely not inspiring math classes (I preferred physics for some reason!?) :)
Cheerio I'll check this out immediately Pedja -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of duck Sent: 04 October 2004 16:29 To: [EMAIL PROTECTED] Subject: Re: <lingo-l> CounterClockWise Sunday, October 3, 2004, 6:08:20 AM, Pedja wrote: P> Ugh...any hints on how to determine if a vector shape (2D) was drawn P> clockwise or anti-clockwise? Offcourse knowing the first vertex point P> and the last...and the lot in P> between:)) (apologies if this mail arrives more than once - didn't get through before because I sent from wrong address) Not sure about this, but how about adding up the total for the angles from one point to the next, for each point? If it's clockwise the total should add up to 360, if anticlockwise the total should be -360... possibly? or the other way around? (haven't tested, and it's monday morning so I may be thinking along the wrong lines completely!) - Ben _________________ [EMAIL PROTECTED] www.robotduck.com [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]