Reference System Transformations

+-------------+                                               +----------##
| Geant 3.11  |               GEANT User's Guide              | GEOM320  ##
+-------------+                                               +----------##
                                   

Author(s) : R. Brun Submitted: 18.08.87 Origin : Same Revised:

              +--------------------------------------------+
              |CALL GMTOD (XM,XD*,IFLAG) |
              +--------------------------------------------+
                                  

Assuming the common/GCVOLU/ properly filled for at least the first NLEVEL levels, and given either the coordinates XM (IFLAG=1) or the direction cosines XM (IFLAG=2) in the Master Reference System, returns them in XD in the Local Reference System of the volume at level NLEVEL. /GCVOLU/ is initialized either by the Tracking routines and GMTOD can then be called from GUSTEP, or by a call to GMEDIA (XM,NUMED), or by a call to GLVOLU (NLEVEL,NAMES,NUMBER,IER)

              +--------------------------------------------+
              |CALL GDTOM (XD,XM*,IFLAG) |
              +--------------------------------------------+
                                  

Inverse operation to GMTOD