function rotation_axis_vector_test ( )

%*****************************************************************************80
%
%% rotation_axis_vector_test() tests ROTATION_AXIS_VECTOR.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 July 2019=8
%
%  Author:
%
%    John Burkardt
%
  angle = 1.159804;
  axis = [ 0.2361737; -0.8814124; -0.4090649 ];
  v = [ 1.0; 4.0; 10.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'rotation_axis_vector_test():\n' );
  fprintf ( 1, '  ROTATION_AXIS_VECTOR applies an axis\n' );
  fprintf ( 1, '  rotation to a vector;\n' );

  r8vec_print ( 3, v, '  The vector:' );

  r8vec_print ( 3, axis, '  The rotation axis:' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  The rotation angle is %f\n', angle );

  w = rotation_axis_vector ( axis, angle, v );

  r8vec_print ( 3, w, '  The rotated vector:' );
%
%  Another test of ROTATION_AXIS_VECTOR with an axis vector
%  that does not have unit length.
%
  v = [ 1.0; 1.0; 1.0 ];

  r8vec_print ( 3, v, '  The vector:' );

  axis(1:3) = [ 0.0; 0.0; 2.0 ];

  r8vec_print ( 3, axis, '  The rotation axis:' );

  angle = 90.0;
  angle = degrees_to_radians ( angle );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  The rotation angle is %f\n', angle );

  w = rotation_axis_vector ( axis, angle, v );

  r8vec_print ( 3, w, '  The rotated vector:' );

  return
end
