1 package org.lcsim.recon.tracking.spacegeom; 2 /** A Cartesian SpacePoint 3 * 4 *@author Norman A. Graf 5 *@version 1.0 6 * 7 */ 8 public class CartesianPoint extends SpacePoint 9 { 10 /** 11 * Constructor. 12 * Constructs a SpacePoint with Cartesian coordinates 13 * @param x Cartesian x coordinate 14 * @param y Cartesian y coordinate 15 * @param z Cartesian z coordinate 16 */ 17 public CartesianPoint(double x, double y, double z) 18 { 19 _x = x; 20 _y = y; 21 _z = z; 22 _xy = Math.sqrt(_x*_x+_y*_y); 23 _xyz = Math.sqrt(_xy*_xy+_z*_z); 24 _phi = Math.atan2(_y,_x); 25 _theta = Math.atan2(_xy,_z); 26 } 27 28 @Deprecated public CartesianPoint(double[] x) { 29 this(x[0], x[1], x[2]); 30 } 31 }