*
* $Id$
*
* $Log$
* Revision 1.1  1995/10/24 10:20:21  cernlib
* Initial revision
*
*
#include "geant321/pilot.h"
*CMZ :  3.21/02 29/03/94  15.41.26  by  S.Giani
*-- Author :
      SUBROUTINE GDCIRR(R,THROT)
C.
C.    ******************************************************************
C.    *                                                                *
C.    *       Draw a circle of radius R, centered on the origin,       *
C.    *       on a plane whose normal is parallel to X-Y plane         *
C.    *       with an angle THROT with X-axis                          *
C.    *                                                                *
C.    *    ==>Called by : GDRAWS                                       *
C.    *       Author : P.Zanarini   *********                          *
C.    *                                                                *
C.    ******************************************************************
C.
#include "geant321/gcdraw.inc"
#include "geant321/gconsp.inc"
      DIMENSION X(3,41),U(41),V(41)
C.
C.    ------------------------------------------------------------------
C.
      IF (R.LT.0.0001) GO TO 999
C
      GTHROT=THROT*DEGRAD
      STHROT=SIN(GTHROT)
      CTHROT=COS(GTHROT)
C
      DO 10 I=1,40
         X(1,I)=R*GCOS(I)*CTHROT
         X(2,I)=R*GSIN(I)
         X(3,I)=R*GCOS(I)*STHROT
   10 CONTINUE
C
      CALL GDFR3D(X,40,U,V)
C
CM             Short circuit in case of GMR
C
      IF ( IGMR .NE. 0 ) GO TO 999
CM
      U(41)=U(1)
      V(41)=V(1)
      CALL GDRAWV(U,V,41)
C
  999 RETURN
      END
