Dear Friends
Please give me an algorithm how can I draw the minor arc with centerX, center Y , radius, startAngle and endAngle. Please help me some one. I need to get the points for the minor arc, not the major arc. Thanks a lot in advance. Sujan
Dear Friends
Please give me an algorithm how can I draw the minor arc with centerX, center Y , radius, startAngle and endAngle. Please help me some one. I need to get the points for the minor arc, not the major arc. Thanks a lot in advance. Sujan
Points of the arc are the solution of a x^2+y^2 = r^2 equation assuming origin of the circle is in the point (0,0). Use trigonometic functions to determine the starting and ending point of the arc.
Or: use the polar form of the circle equation.
Or: use the parametric form.
Or: use Bresenham's Algorithm.
All have advantages over the Cartesian formula in terms of efficiency and drawing partial, specified arcs.
Bookmarks