arc() — 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 arc is defined by a center point, a starting angle, an ending angle, and a radius. The angle is measured from the positive x-axis and specified in integral tenths of degrees. Positive angles describe counterclockwise rotations. Since an arc is a two-dimensional shape, these commands have only 2D 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, so that an arc from 10 degrees to 5 degrees is a nearly complete circle. After the execution of the arc command, the graphics position is undefined.
SEE ALSO
arcf, circ, circf, crv
Version 2.4 — May 08, 1986