Formula for finding points on the circumference of a circle, given by the center of the circle and radius

I am working on a code to find points on the circumference of a circle . i have a circle center point and radius and i need to draw a circle around it. This will help me define the border. Please help me with a formula for finding these points along a circle.

+3


source to share


1 answer


For a circle with origin (j, k) and radius r :

x (t) = r cos (t) + j y (t) = r sin (t) + k



where you need to run this equation for t taking values ​​in the range 0 to 360, then you get x and y each on the border of the circle.

For more information: http://www.math.com/tables/geometry/circles.htm

+15


source







All Articles