VECTORANGLE3D Angle between two 3D vectors.

   THETA = vectorAngle3d(V1, V2)
   Computes the angle between the 2 3D vectors V1 and V2. The result THETA
   is given in radians, between 0 and PI.


   Example
   % angle between 2 orthogonal vectors
   vectorAngle3d([1 0 0], [0 1 0])
   ans = 
       1.5708

   % angle between 2 parallel vectors
   v0 = [3 4 5];
   vectorAngle3d(3*v0, 5*v0)
   ans = 
       0

   See also
   vectors3d, vectorNorm3d, crossProduct3d

Package: matgeom