D D D

the end of the arc:

void CGContextAddArc (
CGContextRef c,
CGFloat x,
CGFloat y,
CGFloat radius,
CGFloat startAngle,
CGFloat endAngle,
int clockwise

use sin for X; cos for Y. The rest is words and samples.