rotation of a set of points
xy1=rotate(xy,[theta,orig])
matrix of size (2,.).
matrix of size (2,.).
real, angle in radians; default value is 0.
center of the rotation [xc;yc]; default value is [0;0].
rotate performs a rotation with angle theta:
xy1(:,i) = M(theta) *(xy(:,i) - orig) + orig
where M stands for the corresponding rotation matrix.