angle measure from vectors ?

   2993   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: 7月 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
4533 posts
Joined: 2月 2012
Online
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]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
  • Quick Links