It's impossible to give exact answer as you've not attached the image. But I think I can help you by giving some rulles about rotation. 180° rotation is (x;y) change to (-x;-y); 90° counterclockwise (x,y) change to (-y, x); then clockwise 90° (x,y), cange to (y, -x). Hope it will help.