code: public void setAngles (XY p1, XY p2) {
          setAngles(p1.x(), p1.y(), p2.x(), p2.y());
      }
docs: Sets the starting angle and angular extent of this arc using two sets of coordinates. The
  first set of coordinates is used to determine the angle of the starting point relative to
  the arc's center. The second set of coordinates is used to determine the angle of the end
  point relative to the arc's center. The arc will always be non-empty and extend
  counterclockwise from the first point around to the second point.