0
$\begingroup$

I'm defining an arc by calling a function like this: arc(x, y, radius*2, radius*2, start, end);

x: center x. y: center y. radius*2: width. radius*2: height. start: start angle in radians or degrees. end: end angle in radians or degrees. 

And now I need to "close" the arc by drawing two lines, both from the center of the arc, to the start and end point of the arc.

How do I find the start and end points?

  • 0
    You know the parametric equations for a circle?2012-08-20
  • 0
    No I don't think so.2012-08-20
  • 2
    Well... [you have some reading to do then!](http://en.wikipedia.org/wiki/Equation_of_a_circle#Equations). If you get stuck come back with your sticking point.2012-08-20
  • 0
    If you have different values for width and height, you have an ellipse, not a circle. Why is radius*2 repeated in the argument list?2012-08-20
  • 0
    Are you working in GeoGebra?2012-08-20
  • 0
    @rschwieb thanks, I'll take a look at that.2012-08-20
  • 0
    @Sigur no I'm using Processing JS.2012-08-20

2 Answers 2