Method AddArc
AddArc(PointD, double, double, double)
Appends a circular arc to the current figure.
void AddArc(PointD center, double radius, double startAngle, double sweepAngle)
Parameters
center
PointDThe center PointD of the arc.
radius
doubleThe radius of the arc.
startAngle
doubleThe starting angle of the arc, measured in degrees clockwise from the x-axis.
sweepAngle
doubleThe angle between
startAngle
and the end of the arc.
Remarks
If there are previous lines or curves in the figure, a line is added to connect the endpoint of the previous segment to the beginning of the arc. The starting point of the arc is determined by measuring clockwise from the x-axis of the ellipse (at the 0-degree angle) by the number of degrees in the start angle. The endpoint is similarly located by measuring clockwise from the starting point by the number of degrees in the sweep angle.