Hello. Thank you for your kind reply.
Today’s question is to rotate a rectangle shape,
but the direction and angle are not controlled as desired.
Photo 1 contains a rectangle to be finally moved,
and a rectangle to extract the rotation angle of Photo 2.
In my opinion, the result of picture 3 came out when I composed logic.