MGL_ellipseArcCoord

Draws an elliptical arc outline.

Declaration

void MGLAPI MGL_ellipseArcCoord(
    int x,
    int y,
    int xradius,
    int yradius,
    int startAngle,
    int endAngle)

Prototype In

mgraph.h

Parameters

x

x coordinate for the center of elliptical arc (syntax 1)

y

y coordinate for the center of elliptical arc (syntax 1)

xradius

x radius for the elliptical arc (syntax 1)

yradius

y radius for the elliptical arc (syntax 1)

startAngle

Starting angle for arc (in degrees)

endAngle

Ending angle for arc (in degrees)

 

Description

Draws the outline of an elliptical given the center and radii for the ellipse. 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. The ellipse outline is drawn in the current pen color, style and size.

Note that this routine can only work with integer semi-major and semi-minor axes, but can sometimes be easier to work with (and is provided for compatibility with other graphics packages). The MGL_ellipseArc routine is more versatile than this, as you can have an ellipse with odd diameter values, which you cannot get with the this routine.

See Also

MGL_ellipseArc, MGL_fillEllipseArc, MGL_ellipse, MGL_fillEllipse

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com