Using C#:
How do I get the (x, y) coordinates on the edge of a circle for any given degree, if I have the center coordinates and the radius?
There is probably SIN, TAN, COSIN and other grade ten math involved... :)
Using C#:
How do I get the (x, y) coordinates on the edge of a circle for any given degree, if I have the center coordinates and the radius?
There is probably SIN, TAN, COSIN and other grade ten math involved... :)
For a circle with origin
(j, k)
, radiusr
, and anglet
in radians:using Pythagoras Theorem (where x1,y1 is the edge point):
in C#, this would look like:
where all variables are
doubles
andangle
is in degreesThis has nothing to do with C#. There is just some elementary mathematics involved.
theta is in radians, x0 and y0 are the coordinates of the centre, r is the radius, and the angle is measured anticlockwise from the x-axis. But if you want it in C#, and your angle is in degrees: