Plot.DrawArc

Prototypes

void DrawArc( Matrix mCenter, double dRadius, Matrix mDegree <, boolean bFill> )

void DrawArc( double dXCenter, double dYCenter, double dRadius, double dStartDegree, double dEndDegree <, boolean bFill> )

Parameters

Matrix mCenter
A 2x1 or 1x2 numeric vector containing the ordered pair specifying the center of an arc. These coordinates are assumed to be in the current coordinate system.

double dXCenter, dYCenter
The ordered pair specifying the center of an arc. These coordinates are assumed to be in the current coordinate system.

double dRadius
The radius of an arc in the current coordinate system.

Matrix mDegree
A numeric vector containing the beginning and ending positions of the arc. The arc begins at mDegree[1] degrees and ends at mDegree[2] degrees.

double dStartDegree, dEndDegree
The beginning and ending positions of the arc. The arc begins at dStartDegree degrees and ends at dEndDegree degrees.

boolean bFill
If bFill is true, the arc is filled using the current brush characteristics. If bFill is false, the arc is not filled. Calling this method without specifying the bFill parameter is equivalent to calling it with bFill equal to false.

Remarks

This method draws an arc centered at a specified location with radius dRadius. The arc begins at mDegree[1] (or dStartDegree) degrees and ends at mDegree[2] (or dEndDegree) degrees. The arc is drawn using the current drawing attributes. The outline of the arc is drawn using the current pen characteristics. If the bFill parameter is true, the arc is filled using the current brush characteristics.

Example
x = { 0 1 0 -1 0 };
y = { 0 0 1 0 -1 };
declare ScatterPlot plot;
plot = ScatterPlot.Create( "Sample Data", x, y );
plot.DrawUseDataCoordinates();
plot.DrawArc( {0, 0}, 1, {0, 180} );