arc(3G) — Silicon Graphics
NAME
arc − draws a circular arc
SPECIFICATION
C
arc(x, y, radius, startang, endang)
Coord x, y, radius;
Angle startang, endang;
arci(x, y, radius, startang, endang)
Icoord x, y, radius;
Angle startang, endang;
arcs(x, y, radius, startang, endang)
Scoord x, y, radius;
Angle startang, endang;
FORTRAN
subroutine arc(x, y, radius, stang, endang)
real x, y, radius
integer*4 stang, endang
subroutine arci(x, y, radius, stang, endang)
integer*4 x, y, radius, stang, endang
subroutine arcs(x, y, radius, stang, endang)
integer*2 x, y, radius
integer*4 stang, endang
Pascal
procedure arc(x, y, radius: Coord;
startang, endang: Angle);
procedure arci(x, y, radius: Icoord;
startang, endang: Angle);
procedure arcs(x, y, radius: Scoord;
startang, endang: Angle);
DESCRIPTION
arc draws a circular arc. The parameters of an arc are the center point (x,y), radius (radius), starting angle (startang), and ending angle (endang). The angle of the arc is measured from the positive x axis and specified in integral tenths of degrees (e.g., 90 degrees equal 900 tenths of degrees). Positive angles describe counterclockwise rotations. Since an arc is a 2-D shape, these routines have only 2-D forms. The arc is drawn in the x-y plane, with z=0, and uses the current color, linestyle, linewidth, and writemask. It is drawn counterclockwise from startang to endang. For example, an arc from 10 degrees to 5 degrees (100 to 50 tenths of degrees) is almost a complete circle. After arc executes, the graphics position is undefined.
SEE ALSO
arcf, circ, circf, crv Programming Guide, Section 3.7, Circles and Arcs
Version 3.6 — December 20, 1987