Skip to content
Snippets Groups Projects
gtShiftContour.m 202 B
Newer Older
Andrew King's avatar
Andrew King committed
function [x,y]=gtShiftContour(x,y,shiftx,shifty,sizex,sizey)

Andrew King's avatar
Andrew King committed
  error('X and Y must be inside the sizex,sizey pair')
end
x=mod(x+shiftx-1,sizex)+1;
y=mod(y+shifty-1,sizey)+1;