Well cosine and sine are you best friends when it comes to rendering circles.
cosine of an angle equals the x- and sine of an angle equals the y-coordinate.
Of course you can't generate a "perfect circle". It will always have edges. If you have more vertices the circle will look less angular and vice versa.
I hope this enough of a hint.