function [] = RotatePatch(h_patch,OrigPts,theta_pts,origin,theta_frame)
%UNTITLED4 Summary of this function goes here
%   Detailed explanation goes here
  z = rot(OrigPts,theta_pts,rot(origin,theta_frame,[0 0])); 
     set(h_patch,'Xdata',z(1,:)); set(h_patch,'Ydata',z(2,:));   
end

