How to draw an arc, I have these values
x // x coordinate y // y coordinate r // Arc radius startAngle // Starting point on circle endAngle // End point on circle clockwise // clockwise or anticlockwise
where x,y is the center of circle. Can someone please provide me equation for drawing an arc?