]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEANT321/gdraw/gdlcyl.F
This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / GEANT321 / gdraw / gdlcyl.F
CommitLineData
fe4da5cc 1*
2* $Id$
3*
4* $Log$
5* Revision 1.1.1.1 1995/10/24 10:20:23 cernlib
6* Geant
7*
8*
9#include "geant321/pilot.h"
10*CMZ : 3.21/02 29/03/94 15.41.26 by S.Giani
11*-- Author :
12 SUBROUTINE GDLCYL(R1,PHI1,Z1,R2,PHI2,Z2)
13C.
14C. ******************************************************************
15C. * *
16C. * Draw a line between points (R1,PHI1,Z1) and (R2,PHI2,Z2) *
17C. * given in cylindrical coordinates *
18C. * *
19C. * ==>Called by : GDRAWS *
20C. * Author : A.McPherson ********* *
21C. * *
22C. ******************************************************************
23C.
24#include "geant321/gconsp.inc"
25 DIMENSION P1(3),P2(3)
26C.
27C. ------------------------------------------------------------------
28C
29 IF (R1.LT.0.0001.AND.R2.LT.0.0001) GO TO 999
30C
31 PH=PHI1*DEGRAD
32 P1(1)=R1*COS(PH)
33 P1(2)=R1*SIN(PH)
34 P1(3)=Z1
35 PH=PHI2*DEGRAD
36 P2(1)=R2*COS(PH)
37 P2(2)=R2*SIN(PH)
38 P2(3)=Z2
39C
40 CALL GDLINE(P1,P2)
41C
42 999 RETURN
43 END