iOS CoreGraphics: Draw arc, determine arc angles from intersecting chord theorem
问题 I'm trying to figure out how to draw an arc in CoreGraphics. I understand which method calls to make and how to compute the angles in the following scenario. ---------- | | *--------* When the points are both in the bottom of the rect. However when two points are in other locations, I don't know how to calculate the correct angle. ---------* | | *--------- See bottom portion of my image. Ray Wenderlich has a great tutorial about creating arcs for only in the first mentioned point positions. /