View Javadoc

1   package org.lcsim.spacegeom;
2   
3   import static java.lang.Math.sqrt;
4   import static org.lcsim.spacegeom.Representation.Cylindrical;
5   /**
6    *
7    *@version $Id: CylindricalVector.java,v 1.1.1.1 2010/12/01 00:15:57 jeremy Exp $
8    */
9   public class CylindricalVector extends SpaceVector
10  {
11      
12      /**
13       * Constructs a vector in cylindrical co-cordinates
14       * @param r
15       * @param phi
16       * @param z
17       */
18      public CylindricalVector(double r, double phi, double z)
19      {
20          _xy = r;
21          _phi = phi;
22          _z = z;
23          _xyz = sqrt(r*r+z*z);
24          _representation = Cylindrical;
25          _x = _y = _theta = Double.NaN;
26      }
27      
28  }