Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ arc(3g) — GL2 W2.5r1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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 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 two-dimensional shape, these routines have only two-dimensional 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 a nearly complete circle.  After arc executes, the graphics position is undefined. 

SEE ALSO

arcf, circ, circf, crv IRIS Graphics Programming, Section 3.7, Circles and Arcs
 

Version 2.5r1  —  October 29, 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026