Rotate function altered to use radians instead of degrees for input