1

I looked at the question here: Draw arc with 2 points and center of the circle And it works perfectly, but I was wondering how I'd go about drawing the major arc associated with the points, rather than the minor one.

(Sorry about formatting, I'm on mobile)

Community
  • 1
  • 1
Socratic Phoenix
  • 556
  • 1
  • 7
  • 19
  • Just exchange startAngle and endAngle arguments? – MBo May 12 '16 at 12:03
  • It's that simple? Cool! – Socratic Phoenix May 12 '16 at 12:23
  • I am not sure how exactly Java drawArc works, so you'd better to check. – MBo May 12 '16 at 12:26
  • Hmm. DrawArc appears to accept the starting angle, and then the total arc measure. In the docs, it states that positive values are Clockwise and negative are Anticlockwise. Therefore, it would be -(360 - endAngle) to get the proper measure. – Socratic Phoenix May 12 '16 at 16:21
  • That is why I was doubted. What version of drawArc (link to decription) are you using? – MBo May 12 '16 at 17:35
  • https://docs.oracle.com/javase/7/docs/api/java/awt/geom/Arc2D.html#setArc(double,%20double,%20double,%20double,%20double,%20double,%20int) here. And the fact that drawArc simply creates an arc and sets it. – Socratic Phoenix May 12 '16 at 21:57

0 Answers0