objective c - Know start and end point of a CGPathAddArc -


i want know start , endpoint of arc generated cgpath method cgpathaddarc.

i want draw portion of "ring" , think combining 2 arcs different radius , drawing 2 lines connecting start , end points.

cgpathaddarc(anillo, null, centro.x, centro.y, r1, ang1, ang2, yes); cgpathaddarc(anillo, null, centro.x, centro.y, r2, ang1, ang2, yes); 

geometry figure want draw

how using arctopoint instead

void cgpathaddarctopoint (   cgmutablepathref path,   const cgaffinetransform *m,   cgfloat x1,   cgfloat y1,   cgfloat x2,   cgfloat y2,   cgfloat radius ); 

you specify start , end points sounds want.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -