View Javadoc

1   package org.lcsim.spacegeom;
2   
3   /** Spherical SpacePointVector
4    * @author Norman A. Graf
5    * @version $Id: SphericalPointVector.java,v 1.1.1.1 2010/12/01 00:15:57 jeremy Exp $
6    */
7   public class SphericalPointVector extends SpacePointVector
8   {
9       
10      /** Constructor
11       * SphericalPointVector
12       * @param r          Spherical radius coordinate
13       * @param phi        Spherical phi coordinate
14       * @param theta      Spherical theta coordinate
15       * @param vr         Spherical delta radius coordinate
16       * @param vtheta     Spherical delta theta coordinate
17       * @param vphi       Spherical rdelta phi coordinate
18       */
19      public SphericalPointVector(double r, double phi, double theta, double vr, double vtheta, double vphi)
20      {
21          startPoint = new SphericalPoint(r, phi, theta);
22          direction = new SphericalVector(vr, vphi, vtheta);
23      }
24      
25      /**Constructor
26       * SphericalPointVector
27       * @param spt    SpacePoint for this point's location
28       * @param vr         Spherical delta radius coordinate
29       * @param vtheta     Spherical delta theta coordinate
30       * @param vphi       Spherical rdelta phi coordinate
31       */
32      public SphericalPointVector(SpacePoint spt, double vr, double vtheta, double vphi)
33      {
34          startPoint = spt;
35          direction = new SphericalVector(vr, vphi, vtheta);
36      }
37  }