How to find coordinates of rotation