how to make a circle??

I want to make a circle with LineTo Functions.
I mean i don't wanna use Elipse Functioin.
i believe it is possible to make it with line.
If you know, help me :)
Thank you in advance.
The sin and cos functions should help with that. For a particular angle, the point (cos(a),sin(a)) is the point that lies on a circle with the radius 1.
So if you connect all points with small angle intervals, you'll get a circle.
I believe there are more efficient methods, but if you cared about that, you'd use the Ellipse function.
And since Y axis on windows programming is measure from top (0) bottom (0+n). You might want sin(a*-1)

[edit]
Nah! never mind, It's a circle anyway, so no problem..
Last edited on
Topic archived. No new replies allowed.