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);
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
Post a Comment