point on a circle extract dx and dy?

151 Views Asked by At

Given a circle like this, where i know the 2d coordinates of the center, and the radius of the circle, how do i determine the point on the circle, of more precise, dx and dy?

illustration

enter image description here

Sorry for my immature drawing skills.

1

There are 1 best solutions below

0
On BEST ANSWER

Say $O_x$ and $O_y$ are the coordinates of the center and $r$ is its radius.
Then you have:

$(dx-O_x)^2 + (dy-O_y)^2 = r^2$

Any couple $(dx,dy)$ satisfying this equation is a point from the circle.
Of course you cannot determine $(dx,dy)$ uniquely, since there're many points on that circle.