View Single Post
Old 26th May 2014, 07:01 PM   #14
fabrizio fracaroli
Junior Member
Member
 
Join Date: Apr 2010
Location: Brazil
Posts: 21
Talking Re: Getting the angle vectors ?

Quote:
Originally Posted by jentron View Post
Hmm, the angle would depend on the order you selected the vertices in.

Math-wise, if your vertices were v1, v2 and v3 you could calculate the angle by letting vectorA = v1-v2 and vectorB = v3-v2 then take:

acos( vectorA dot vectorB )/(||vectorA|| ||vectorB||)

Not sure right now how to wrap that into a neat UI function...

Ron
I am very embarrassed saying that... but I do not understand these maths. I was never good on "sen" cos" tang" etc, related to the geometric calculations...
not even wise on scripts languages.ops: ops:
Really appreciated the reply, even I did not understand.
Regards Fabrizio
fabrizio fracaroli is offline   Reply With Quote