I have a point at 2d space in only positive x and y axis, point P(x1, y1) is rotated along axis point C(x3, y3) to reach at point P2(x2, y2).
Now I just need to calculate the angle of rotation.
If possible please share simplified formula along with the details.
Refer this image provided for clarity
Thanks
$$\arctan_2(y_2-y_c,x_2-x_c)-\arctan_2(y_1-y_c,x_1-x_c)$$