function [rotImg] = myRotation(origImg, rotAmount)

if rotAmount == 0;
    % if no translation, i.e. transAmount - 0
    rotImg = origImg;
else
    % create an empty image, same size as the original image
    rotImg = imrotate(origImg, rotAmount,'nearest','crop');
end

end