function rotation_quat_vector_test ( )

%*****************************************************************************80
%
%% ROTATION_QUAT_VECTOR_TEST tests ROTATION_QUAT_VECTOR.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    30 July 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ROTATION_QUAT_VECTOR_TEST\n' );
  fprintf ( 1, '  ROTATION_QUAT_VECTOR applies a quaternion\n' );
  fprintf ( 1, '  rotation to a vector.\n' );

  q = [ 0.836516; 0.12941; -0.482963; -0.224144 ];
  r8vec_print ( 4, q, '  The rotation quaternion:' );

  v = [ 1.0; 4.0; 10.0 ];
  r8vec_print ( 3, v, '  The vector V:' );

  w = rotation_quat_vector ( q, v );
  r8vec_print ( 3, w, '  The rotated vector:' );

  return
end
