# R2 - FillPie

void R2::FillPie(double x,
double y,
double width,
double height,
double startAngle,
double sweepAngle)

This method draws a pie.

## Parameters

double x

The x-coordinate of the upper-left corner of the bounding ellipse.

double y

The y-coordinate of the upper-left corner of the bounding ellipse.

double width

The width of the bounding ellipse.

double height

The height of the bounding ellipse.

double startAngle

The starting angle of the sector of the pie to be drawn (in degrees).

double sweepAngle

The sweep angle of the sector of the pie to be drawn (in degrees).

## Notes

The following illustration shows the pie that is drawn in the ellipse that
is bounded by the rectangle. The illustration also shows the horizontal axis of the ellipse
and the direction of the startAngle and the sweepAngle.