angle measure from vectors ?

   3670   3   2
User Avatar
Member
383 posts
Joined:
Offline
Hello,

I would like to know the way to get the angle between to normalized vectors.

Thanks for your help

Vincent
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
1390 posts
Joined: July 2005
Offline
Generally speaking:
float angle = acos(dot(v1,v2))

you want vex, hscript, python?
User Avatar
Member
383 posts
Joined:
Offline
vex
acos means arc cos ?

anyway thank for the math !
http://vimeo.com/vbkstudio [vimeo.com]
User Avatar
Member
5100 posts
Joined: Feb. 2012
Offline
Yes acos = arc cosine.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
  • Quick Links