h00496
s 00000/00000/00048
d D 1.2 83/01/28 13:48:10 tes 2 1
c initial_internal_update
e
s 00048/00000/00000
d D 1.1 83/01/28 13:01:11 tes 1 0
c date and time created 83/01/28 13:01:11 by tes
e
u
tes
mjb
mrk
mmm
U
t
T
I 1
subroutine gparc (x, y, radius, start, end, kincr)
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: generate an arc                                        #
#                                                                      #
#     Input Parameters:                                                #
#            x      - x coordinate                                     #
#            y      - y coordinate                                     #
#            radius -                                                  #
#            start  -                                                  #
#            end    -                                                  #
#            kincr  -                                                  #
#                                                                      #
#     Output Parameters:                                               #
#            none                                                      #
#                                                                      #
#     Routines Called:                                                 #
#            idraw - do a 2D absolute draw                             #
#                                                                      #
########################################################################
integer kincr
real x, y, radius, start, end

real dinc, angle, xn, yn
integer i, kount

include(`pltcom')
 
   dinc = 3.14159/float(kincr)
   kount = abs (end-start)/dinc + 1.5
   angle = start
   for (i=1; i<=kount; i=i+1) {
      if (i == kount) angle = end
      xn = x + radius*cos(angle)
      yn = y + radius*sin(angle)
      call idraw (ABSOLUTE, xn, yn)
      angle = angle + dinc
      }
   return
end
E 1
