Forums > Gen

Gen dot product

August 7, 2012 | 7:55 pm

Hi,

How do you get the angle between two vectors A and B in Gen ?

The formulae is the following : acos( dot(A,B) / length(A)*length(B) ) but I can’t make it work ?

– Pasted Max Patch, click to expand. –

August 7, 2012 | 10:39 pm

It works for me. Make sure you send the right matrix before the left one:

– Pasted Max Patch, click to expand. –

August 8, 2012 | 12:01 am

Oh, thanks ! You are probably right, I may not have clicked the matrix in the right order… And thanks for posting the original formula on the forum, it’s a good example on how Gen can be easy !


Viewing 3 posts - 1 through 3 (of 3 total)