Gen dot product

nnimar's icon

Hi,

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

Max Patch
Copy patch and select New From Clipboard in Max.

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

Wesley Smith's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

nimar's icon

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 !