|
|
|
|
MGL_ellipseArcEngine
Generates the set of points on an elliptical arc.
Declaration
void MGLAPI MGL_ellipseArcEngine(
rect_t extentRect,
int startAngle,
int endAngle,
arc_coords_t *ac,
void (MGLAPIP plotPoint)(
long x,
long y))
Prototype In
mgraph.h
Parameters
extentRect |
Bounding rectangle defining the arc |
startAngle |
Starting angle for arc (in degrees) |
endAngle |
Ending angle for arc (in degrees) |
ac |
Place to store computed arc coordinates |
plotPoint |
Function to call for every point on the elliptical arc |
Description
This routine generates the set of points on a elliptical arc, and is the same code used to generate elliptical arcs internally in MGL. You can call it to generate the set of points on an elliptical arc, calling your own plotPoint routine for every point on the arc. The points on the arc are rasterized in order from the starting angle to the ending angle. After the arc has been drawn, the arc coordinates are returned, which contains the actual center, starting and ending points for the arc.
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com