Derivation,Algorithm and Drawback of PARAMETRIC Circle Drawing Algorithm.
DERIVATION :
The locus of all
those points that are situated at equal distance from a fixed point (Xc , Yc).
X – Xc =
r cos(angle)
Y – Yc = r sin(angle)
X = Xc +
r cos(angle)
Y = Yc +
r sin(angle)
ALGORITHM OF PARAMETRIC CIRCLE DRAWING
:
Begin :
Read
(Xc , Yc) and r
X = Xc , Y = Yc
while(X <= Xc + r)
{
plotpoint (X ,Y )
X++
}
End
DRAWBACK OR PARAMETRIC CIRCLE DRAWING :
- Round of error.
- Floating point operation.
- Stair case output.
No comments:
Post a Comment