Table of Contents

Method AddArc

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

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 PointD

The center PointD of the arc.

radius double

The radius of the arc.

startAngle double

The starting angle of the arc, measured in degrees clockwise from the x-axis.

sweepAngle double

The 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.