Professional Documents
Culture Documents
ng if x'y r thenpoint
x y lies outsidethecircle
Katy v2 G
0,0
If x aye r then point
x y lies within thecircle
2
x2 y 0
If x'tyler thenpoint
Our aim from the algorithm ix y lies on the circle
x2 yr ra 0
Plot the points fills pixels to create
a circle
by choosing either east or south east pixels
What do we base our decision around
Through substitution
2 2
Xi 1 yet 82 let p x 132
yet r
x 1 1 Yi 1 r
x 421 4 45 34 t
4
r
pity III.bg
Put
F 2xzt3 Put 2CXitl
2 xit1
1
1
If NE was chosen
Put Xi 1 Yet 1 r2
x 1 1 Yi l t r2 x 2 y 332 r2
Pkt Ph
FEET.FI IIEI
Putt
Ej.t 2xjt3
Put 2 Xitt
2
2yi
1211 Yi
24,417 1 211 Yi
Calculating initial conditions
Let the c p
of the circle be x y
For the sake of simplicity x
y is reduced to 0 origin
The initial point on the circle is O r
Therefore the midpoint is 1 r
t which takes on the form
2
G rt r
by substituting in the circle
r r
ty
r o eqnE lt r Po