I use the following code to draw an arc in the bottom half of a circle.
According to Apple's documentation:
This method creates an open subpath. The created arc lies on the perimeter of the specified circle. When drawing the coordinate systems by default, the starting and ending angles are based on the unit circle shown in Figure 1. For example, setting the starting angle is 0 radians, the ending angle Ο radians, and setting clockwise. The YES parameter takes the lower half of the circle. However, setting the same starting and ending angles, but setting clockwise the parameter set to NO, draws the upper half of the circle.
I wrote
std::complex<double> start1( std::polar(190.0,0.0) ); CGPoint targetStart1 = CGPointMake(start1.real() + 342.0, start1.imag() + 220.); CGMutablePathRef path = CGPathCreateMutable(); CGPathMoveToPoint(path, NULL, targetStart1.x, targetStart1.y); CGPathAddArc(path, NULL, 342.0, 220.0, 190, 0.0, PI_180, YES ); CGContextAddPath(context, path); CGContextSetLineWidth( context, 15.0 );
However, an arc is drawn in the upper half of the circle (see green ring). I am wondering if I accidentally flipped the coordination system somewhere in the code, but I donβt know which team I should look for.

Thanks for the help ur.
Pegah source share