Midpoint Circle Algorithm-Cg
Midpoint Circle Algorithm-Cg
1) Input radius r and circle center (xc, yc) and obtain the first point on the
circumference of the circle centered on origin as (x0,y0) = r
2) Calculate the initial value of the decision parameter as
p0 = 5/4 - r
Midpoint circle algorithm (2)