# R2 - DrawPie

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

This method draws a pie.

## Parameters

long long x

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

long long y

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

long long width

The width of the bounding ellipse.

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