Coordinates of point on circle certain number of degrees away from other point

43 Views Asked by At

I know the center of a circle $(C_x, C_y)$. I know a point on the circle $(X_1, Y_1)$. I want to know the coordinates of a new point on the circle $(X_2,Y_2)$ a certain number degrees $(d)$ away from the original point.

Would this equation be correct?

$$X_2 = C_x + \sqrt{(X_1-C_x)^2+(Y_1-C_y)^2}\cos\left(\arctan\left({y\over x}\right) + d\right)\\[10pt] Y_2 = C_y + \sqrt{(X_1-C_x)^2+(Y_1-C_y)^2}\sin\left(\arctan\left({y\over x}\right) + d\right)$$

So to clarify my question to make sure it is clear, I am starting at a certain point $(X_1,Y_1)$ on a circle (center $C_x,C_y$) and want to travel along the circle a certain number of degrees $(d)$ and come up with the new coordinates at that point $(X_2,Y_2)$

Is the equation I have above correct? And if so, is there a way to make it better/simpler?

1

There are 1 best solutions below

0
On

You're almost there. Is there a specific direction you want to go, i.e. do you want to increase d degrees, or decrease d degrees, or both? If both you need +/- in front of d.

Suppose d were 0 and y=Y1 and x=X1. Does your formula yield the proper values for Y2 and X2? If not, how might it need to change?