arc(3) — Unix Programmer’s Manual
NAME
arc - draw a circular arc
SYNOPSIS
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;
FORTRAN
subroutine arc(x, y, radius, stang, endang)
real x, y, radius
integer∗2 stang, endang
subroutine arci(x, y, radius, stang, endang)
integer x, y, radius
integer∗2 stang, endang
Pascal
procedure arc(x, y, radius: Coord; startang, endang: Angle);
procedure arci(x, y, radius: Icoord; 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° to 5° is a nearly complete circle. After the execution of the arc command, the graphics position is undefined.
SEE ALSO
arcf, circ, circf, curve
Silicon Graphics — R1c