rotate_xy function

Rotate a matrix of x and y coordinates by a radian