Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF (EN)

Chapter 3 - Output 41 0 line is drawn. If two of the three points are coincident, a line is drawn between the two distinct points. Finally, if all three points are coincident, a point is drawn. circular_arc_3pt is considerably slower than circular_ arc_ center, therefore, you are advised to circular_ arc_ center if both functions can meet your needs. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC.

Circular Arc 3pt Close Cerror circular_arc_3pt_close(cl, c2, c3, close) Ccoor *cl, *c2, *c3; /* starting, intermediate and ending points*/ Cclosetype close; /* PIE or CHORD*/ circular_arc_3pt_close draws a circular arc starting at point cl and ending at point c3 which is guaranteed to pass through point c2 . The solid object attributes described in Section 4.4 detennine the appearance of the circular_arc_3pt_close function. As with circular_arc_3pt, circular_arc_3pt_close is considerably slower than circular_arc_center_close; therefore, you are advised to use circular_arc_center_close if both functions meet your needs. If the three points are colinear, a line is drawn.

If two of the three points are coincident, a line is drawn between the two distinct points. Finally, if all three points are coincident, a point is drawn. In none of these cases will any region be filled. 0 Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. Ellipse Cerror ellipse(cl, majx, miny) Ccoor *cl; /*center*/ Cint majx, miny; /* length of x and y axes*/ ellipse draws an ellipse centered at point cl with major (x) and minor (y) axes of length majx and miny . 9 If either majx or miny are zero, a line is drawn. If both majx and miny are zero, a point is drawn.

The attributes which control the drawing of ellipses are the solid object attributes described in Section 4.4. Errors ENOTVSAC [4] CGI not in proper state: CGI shall be in state VSAC. Elliptical Arc Cerror elliptical_arc(cl, sx, sy, ex, ey, majx, miny) Ccoor *cl;/* center*/ Cint sx, sy; /* starting point of arc*/ Cint ex, ey; /* ending point of arc*/ Cint majx, miny; /* endpoints of major and minor axes*/ elliptical_arc draws an elliptical arc centered at cl with major (x) and minor (y) axes oflength majx and miny. sx, sy and ex, ey are the starting and 0 9 Although the axes are- called the major and minor axes by the standard they are really the .x and y axes.

In fact, the x axis can either be the major or minor axis, depending on the relative length of they axis. Version C of 17 March 1986