1 package org.lcsim.recon.tracking.spacegeom;
2
3
4
5
6
7
8 public class CylindricalPointVector extends SpacePointVector
9 {
10
11
12
13
14
15
16
17
18
19
20 public CylindricalPointVector(double r, double phi, double z, double vr, double vphi, double vz)
21 {
22 super(new CylindricalPoint(r,phi,z));
23 _vx = cosPhi()*vr - sinPhi()*vphi;
24 _vy = sinPhi()*vr + cosPhi()*vphi;
25 _vz = vz;
26 }
27
28
29
30
31
32
33
34
35 public CylindricalPointVector(SpacePoint spt, double vr, double vphi, double vz)
36 {
37 super(spt);
38 _vx = cosPhi()*vr - sinPhi()*vphi;
39 _vy = sinPhi()*vr + cosPhi()*vphi;
40 _vz = vz;
41 }
42 }