|
|
|
|
MGL_fillEllipseArc
Fills an elliptical arc.
Declaration
void MGLAPI MGL_fillEllipseArc(
rect_t extentRect,
int startAngle,
int endAngle)
Prototype In
mgraph.h
Parameters
extentRect |
Bounding rectangle |
startAngle |
Starting angle for arc (in degrees) |
endAngle |
Ending angle for arc (in degrees) |
Description
Fills an elliptical arc forming a wedge, just inside the mathematical boundary of extentRect. StartAngle specifies where the arc begins and is treated MOD 360. EndAngle specifies where the arc ends and is also treated MOD 360. The angles are given in positive or negative degrees. Zero degrees is at 3 o'clock, 90 is at 12 o'clock high, 180 is at 9 o'clock and 270 is at 6 o'clock. Other angles are measured relative to the enclosing rectangle. Thus an angle of 45 degrees always defines a line from the center of the rectangle through it's top right corner, even if the rectangle isn't square.
This routine is more versatile than MGL_fillEllipseArcCoord, as it allows an ellipse with odd diameter values, which you cannot get with the MGL_fillEllipseArcCoord.
See Also
MGL_fillEllipseArc, MGL_ellipseArc, MGL_ellipse, MGL_fillEllipse
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com