]> git.uio.no Git - u/mrichter/AliRoot.git/blame - GEANT321/gdraw/gdaxis.F
Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / GEANT321 / gdraw / gdaxis.F
CommitLineData
fe4da5cc 1*
2* $Id$
3*
4* $Log$
5* Revision 1.1.1.1 1995/10/24 10:20:20 cernlib
6* Geant
7*
8*
9#include "geant321/pilot.h"
10*CMZ : 3.21/02 29/03/94 15.41.25 by S.Giani
11*-- Author :
12 SUBROUTINE GDAXIS(X0,Y0,Z0,AXSIZ)
13C.
14C. ******************************************************************
15C. * *
16C. * Draw the axis system at a given *
17C. * point (X0,Y0,Z0) with axis of length AXSIZ; *
18C. * by this way the user can easily realize *
19C. * wich view is in effect in the picture *
20C. * *
21C. * ==>Called by : <USER>, <GXINT>, GDSPEC *
22C. * Author : P.Zanarini ********* *
23C. * *
24C. ******************************************************************
25C.
26 DIMENSION X(3,4),U(4),V(4),XL(3)
27C
28C.
29C. ------------------------------------------------------------------
30C.
31 DO 10 I=1,4
32 X(1,I)=X0
33 X(2,I)=Y0
34 X(3,I)=Z0
35 10 CONTINUE
36C
37 X(1,2)=X0+AXSIZ
38 X(2,3)=Y0+AXSIZ
39 X(3,4)=Z0+AXSIZ
40 CALL GDFR3D(X,4,U,V)
41C
42 DO 20 I=1,3
43 XL(I)=SQRT((U(I+1)-U(1))**2+(V(I+1)-V(1))**2)
44 20 CONTINUE
45C
46 XLMAX=MAX(XL(1),XL(2))
47 XLMAX=MAX(XLMAX,XL(3))
48 ARSIZ=XLMAX/7.0
49C
50 CALL GDARR(U(1),V(1),U(2),V(2),ARSIZ,'<X')
51 CALL GDARR(U(1),V(1),U(3),V(3),ARSIZ,'<Y')
52 CALL GDARR(U(1),V(1),U(4),V(4),ARSIZ,'<Z')
53C
54 END