ROTATEVECTOR Rotate a vector by a given angle.

   VR = rotateVector(V, THETA)
   Rotate the vector V by an angle THETA, given in radians.

   Example
   rotateVector([1 0], pi/2)
   ans = 
       0   1

   See also
   vectors2d, transformVector, createRotation

 ------
 Author: David Legland
 e-mail: david.legland@grignon.inra.fr
 Created: 2011-04-14,    using Matlab 7.9.0.529 (R2009b)
 Copyright 2011 INRA - Cepia Software Platform.

Package: matgeom