function h = hexity_rotate ( h, r )

%*****************************************************************************80
%
%% hexity_rotate() adjusts hexity to account for rotation.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 March 2022
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer H(1,12): the hex parity of the object.
%
%    integer R: the number of counterclockwise 60 degree rotations applied.
%
%  Output:
%
%    integer H(1,12): the hex parity of the object after rotation.
%
  h1 = circshift ( h(1,1:6), r );
  h2 = circshift ( h(1,7:12), r );
  h = [ h1, h2 ];

% h = circshift ( h, 12-r );

  return
end

