CREATEROTATIONVECTOR3D Calculates the rotation between two vectors.

   ROT = createRotationVector3d(A, B) returns the 4x4 rotation matrix ROT
   to transform vector A in the same direction as vector B.

   Example
     A=[ .1  .2  .3];
     B=-1+2.*rand(1,3);
     ROT = createRotationVector3d(A,B);
     C = transformVector3d(A,ROT);
     figure('color','w'); hold on; view(3)
     O=[0 0 0];
     drawVector3d(O, A,'r');
     drawVector3d(O, B,'g');
     drawVector3d(O, C,'r');

   See also
   transformPoint3d, createRotationOx, createRotationOy, createRotationOz

   Source
     https://math.stackexchange.com/a/897677

 ---------
 Author: oqilipo
 Created: 2017-08-07
 Copyright 2017

Package: matgeom