Quote:
Originally Posted by jentron
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