function [prev,next] = findNeighbor(index,polygonSize)
%findNeighbor find neighbour vertices of a polygon vertex.

%   Copyright 2022 The MathWorks, Inc.

prev=mod(index-2,polygonSize)+1;
next=mod(index,polygonSize)+1;
end

