1 package org.lcsim.recon.tracking.spacegeom; 2 /** A Cylindrical SpacePoint 3 * 4 *@author Norman A. Graf 5 *@version 1.0 6 *@see SpacePoint 7 */ 8 public class CylindricalPoint extends SpacePoint 9 { 10 11 /** Constructor. 12 * Constructs a SpacePoint with Cylindrical coordinates 13 * @param r Cylindrical radius coordinate 14 * @param phi Cylindrical phi coordinate 15 * @param z Cylindrical z coordinate 16 */ 17 public CylindricalPoint(double r, double phi, double z) 18 { 19 _xy = r; 20 _phi = phi; 21 _z = z; 22 _x = r*Math.cos(phi); 23 _y = r*Math.sin(phi); 24 _xyz = Math.sqrt(_xy*_xy+_z*_z); 25 _theta = Math.atan2(_xy,_z); 26 } 27 }