Gen dot product

Aug 7, 2012 at 7:55pm

Gen dot product

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. –
#63896
Aug 7, 2012 at 10:39pm

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

– Pasted Max Patch, click to expand. –
#230409
Aug 8, 2012 at 12:01am

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 !

#230410

You must be logged in to reply to this topic.