26 modified files
lcsim/src/org/lcsim/spacegeom
diff -u -r1.2 -r1.3
--- CartesianPath.java 31 Aug 2005 07:39:16 -0000 1.2
+++ CartesianPath.java 18 Oct 2005 16:39:44 -0000 1.3
@@ -2,7 +2,7 @@
/** A Cartesian SpacePath
*
*@author Norman A. Graf
- *@version
+ *@version $Id: CartesianPath.java,v 1.3 2005/10/18 16:39:44 ngraf Exp $
*@deprecated in favor of @link{#CartesianPointVector}
*/
@Deprecated public class CartesianPath extends SpacePath
lcsim/src/org/lcsim/spacegeom
diff -u -r1.4 -r1.5
--- CartesianPoint.java 31 Aug 2005 07:39:17 -0000 1.4
+++ CartesianPoint.java 18 Oct 2005 16:39:45 -0000 1.5
@@ -2,7 +2,7 @@
/** A Cartesian SpacePoint
*
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: CartesianPoint.java,v 1.5 2005/10/18 16:39:45 ngraf Exp $
*
*/
import static org.lcsim.spacegeom.Representation.Cartesian;
@@ -33,7 +33,8 @@
* @param x
* @deprecated please use the explicit constructor
*/
- @Deprecated public CartesianPoint(double[] x) {
+ @Deprecated public CartesianPoint(double[] x)
+ {
this(x[0], x[1], x[2]);
}
}
\ No newline at end of file
lcsim/src/org/lcsim/spacegeom
diff -u -r1.2 -r1.3
--- CartesianPointVector.java 31 Aug 2005 07:39:16 -0000 1.2
+++ CartesianPointVector.java 18 Oct 2005 16:39:45 -0000 1.3
@@ -2,7 +2,7 @@
/** A Cartesian SpacePointVector
*
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: CartesianPointVector.java,v 1.3 2005/10/18 16:39:45 ngraf Exp $
*
*/
@@ -18,7 +18,8 @@
* @param vy
* @param vz
*/
- public CartesianPointVector(double x, double y, double z, double vx, double vy, double vz) {
+ public CartesianPointVector(double x, double y, double z, double vx, double vy, double vz)
+ {
startPoint = new CartesianPoint(x, y, z);
direction = new CartesianVector(vx, vy, vz);
}
@@ -30,7 +31,8 @@
* @param vy
* @param vz
*/
- public CartesianPointVector(SpacePoint spt, double vx, double vy, double vz) {
+ public CartesianPointVector(SpacePoint spt, double vx, double vy, double vz)
+ {
startPoint = spt;
direction = new CartesianVector(vx, vy, vz);
}
lcsim/src/org/lcsim/spacegeom
diff -u -r1.1 -r1.2
--- CartesianTwoPoint.java 1 Feb 2005 23:57:21 -0000 1.1
+++ CartesianTwoPoint.java 18 Oct 2005 16:39:45 -0000 1.2
@@ -2,7 +2,7 @@
/** A Cartesian TwoSpacePoint
*
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: CartesianTwoPoint.java,v 1.2 2005/10/18 16:39:45 ngraf Exp $
*/
public class CartesianTwoPoint extends TwoSpacePoint
{
lcsim/src/org/lcsim/spacegeom
diff -u -r1.1 -r1.2
--- CartesianVector.java 31 Aug 2005 07:39:17 -0000 1.1
+++ CartesianVector.java 18 Oct 2005 16:39:45 -0000 1.2
@@ -2,15 +2,21 @@
import static java.lang.Math.sqrt;
import static org.lcsim.spacegeom.Representation.Cartesian;
-public class CartesianVector extends SpaceVector {
-
+/**
+ *
+ *@version $Id: CartesianVector.java,v 1.2 2005/10/18 16:39:45 ngraf Exp $
+ */
+public class CartesianVector extends SpaceVector
+{
+
/**
* Constructs a new Vector from 3 Cartesian co-ordinates
* @param x
* @param y
* @param z
*/
- public CartesianVector(double x, double y, double z) {
+ public CartesianVector(double x, double y, double z)
+ {
_x = x;
_y = y;
_z = z;
lcsim/src/org/lcsim/spacegeom
diff -u -r1.1 -r1.2
--- CylindricalPath.java 1 Feb 2005 23:57:21 -0000 1.1
+++ CylindricalPath.java 18 Oct 2005 16:39:45 -0000 1.2
@@ -2,7 +2,7 @@
/** A Cylindrical SpacePath
*
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: CylindricalPath.java,v 1.2 2005/10/18 16:39:45 ngraf Exp $
*
*/
public class CylindricalPath extends SpacePath
lcsim/src/org/lcsim/spacegeom
diff -u -r1.2 -r1.3
--- CylindricalPoint.java 31 Aug 2005 07:39:17 -0000 1.2
+++ CylindricalPoint.java 18 Oct 2005 16:39:45 -0000 1.3
@@ -3,7 +3,7 @@
/** A Cylindrical SpacePoint
*
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: CylindricalPoint.java,v 1.3 2005/10/18 16:39:45 ngraf Exp $
*@see SpacePoint
*/
import static java.lang.Math.sqrt;
lcsim/src/org/lcsim/spacegeom
diff -u -r1.3 -r1.4
--- CylindricalPointVector.java 31 Aug 2005 07:39:17 -0000 1.3
+++ CylindricalPointVector.java 18 Oct 2005 16:39:45 -0000 1.4
@@ -1,7 +1,7 @@
package org.lcsim.spacegeom;
/** A Cylindrical SpacePointVector
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: CylindricalPointVector.java,v 1.4 2005/10/18 16:39:45 ngraf Exp $
*
*/
lcsim/src/org/lcsim/spacegeom
diff -u -r1.2 -r1.3
--- CylindricalTwoPoint.java 31 Aug 2005 07:39:17 -0000 1.2
+++ CylindricalTwoPoint.java 18 Oct 2005 16:39:45 -0000 1.3
@@ -2,7 +2,7 @@
/** A Cylindrical TwoSpacePoint
*
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: CylindricalTwoPoint.java,v 1.3 2005/10/18 16:39:45 ngraf Exp $
*/
public class CylindricalTwoPoint extends TwoSpacePoint
{
lcsim/src/org/lcsim/spacegeom
diff -u -r1.1 -r1.2
--- CylindricalVector.java 31 Aug 2005 07:39:17 -0000 1.1
+++ CylindricalVector.java 18 Oct 2005 16:39:45 -0000 1.2
@@ -2,16 +2,21 @@
import static java.lang.Math.sqrt;
import static org.lcsim.spacegeom.Representation.Cylindrical;
-
-public class CylindricalVector extends SpaceVector {
-
+/**
+ *
+ *@version $Id: CylindricalVector.java,v 1.2 2005/10/18 16:39:45 ngraf Exp $
+ */
+public class CylindricalVector extends SpaceVector
+{
+
/**
* Constructs a vector in cylindrical co-cordinates
* @param r
* @param phi
* @param z
*/
- public CylindricalVector(double r, double phi, double z) {
+ public CylindricalVector(double r, double phi, double z)
+ {
_xy = r;
_phi = phi;
_z = z;
@@ -19,5 +24,5 @@
_representation = Cylindrical;
_x = _y = _theta = Double.NaN;
}
-
+
}
lcsim/src/org/lcsim/spacegeom
diff -u -r1.1 -r1.2
--- Eigensystem.java 28 Jun 2005 06:01:13 -0000 1.1
+++ Eigensystem.java 18 Oct 2005 16:39:45 -0000 1.2
@@ -1,7 +1,10 @@
package org.lcsim.spacegeom;
import java.io.PrintStream;
-
+/**
+ *
+ *@version $Id: Eigensystem.java,v 1.2 2005/10/18 16:39:45 ngraf Exp $
+ */
class Eigensystem
{
lcsim/src/org/lcsim/spacegeom
diff -u -r1.1 -r1.2
--- Matrix.java 28 Jun 2005 06:01:13 -0000 1.1
+++ Matrix.java 18 Oct 2005 16:39:45 -0000 1.2
@@ -1,6 +1,10 @@
package org.lcsim.spacegeom;
import java.io.*;
-
+/**
+ *
+ *
+ *@version $Id: Matrix.java,v 1.2 2005/10/18 16:39:45 ngraf Exp $
+ */
class Matrix
{
@@ -121,7 +125,7 @@
else
return -Math.abs(d);
}
-
+
public double at(int i, int j)
{
@@ -181,7 +185,7 @@
return _eigenvalues;
}
-
+
public Eigensystem getEigensystem()
{
return _eigensystem;
@@ -493,7 +497,7 @@
return matrix1;
}
-
+
protected double pythagoras(double d, double d1)
{
double d2 = Math.abs(d);
@@ -504,7 +508,7 @@
return d3 != 0.0D ? d3 * Math.sqrt(1.0D + square(d2 / d3)) : 0.0D;
}
-
+
public int rows()
{
lcsim/src/org/lcsim/spacegeom
diff -u -r1.1 -r1.2
--- PrincipalAxesLineFitter.java 28 Jun 2005 06:01:13 -0000 1.1
+++ PrincipalAxesLineFitter.java 18 Oct 2005 16:39:45 -0000 1.2
@@ -5,6 +5,9 @@
* This version uses unweighted cells.
* Array centroid is a point on the line.
* Array dircos contains the direction cosines for the line.
+ *
+ *@version $Id: PrincipalAxesLineFitter.java,v 1.2 2005/10/18 16:39:45 ngraf Exp $
+ *
*/
public class PrincipalAxesLineFitter
{
@@ -156,7 +159,7 @@
}
/**
- * The theta angle of the centroid
+ * The theta angle of the centroid
* @return the theta angle of the centroid
*/
public double theta()
lcsim/src/org/lcsim/spacegeom
diff -u -r1.1 -r1.2
--- Representation.java 31 Aug 2005 07:39:17 -0000 1.1
+++ Representation.java 18 Oct 2005 16:39:45 -0000 1.2
@@ -1,5 +1,9 @@
package org.lcsim.spacegeom;
-
-public enum Representation {
+/**
+ *
+ *@version $Id: Representation.java,v 1.2 2005/10/18 16:39:45 ngraf Exp $
+ */
+public enum Representation
+{
Cartesian, Cylindrical, Spherical
}
lcsim/src/org/lcsim/spacegeom
diff -u -r1.7 -r1.8
--- SpacePath.java 31 Aug 2005 07:39:17 -0000 1.7
+++ SpacePath.java 18 Oct 2005 16:39:45 -0000 1.8
@@ -29,7 +29,7 @@
* (v_x(), v_y(), ...) or via the methods defined here.
*<p>
*@author Norman A. Graf
- *@version
+ *@version $Id: SpacePath.java,v 1.8 2005/10/18 16:39:45 ngraf Exp $
*@deprecated this class does not offer additional functionality to SpacePointVector
*
*/
@@ -46,14 +46,14 @@
super();
}
- /** Constructor from a space vector.
+ /** Constructor from a space vector.
* @param svec the SpacePointVector from which to contruct
*/
public SpacePath( SpacePointVector svec )
{
super(svec);
}
-
+
/** Cartesian dx.
* @return delta x
lcsim/src/org/lcsim/spacegeom
diff -u -r1.5 -r1.6
--- SpacePoint.java 13 Sep 2005 09:31:18 -0000 1.5
+++ SpacePoint.java 18 Oct 2005 16:39:45 -0000 1.6
@@ -7,6 +7,10 @@
import java.io.Serializable;
+/**
+ *
+ *@version $Id: SpacePoint.java,v 1.6 2005/10/18 16:39:45 ngraf Exp $
+ */
public class SpacePoint implements Serializable, Cloneable, Hep3Vector
{
Representation _representation;
@@ -18,34 +22,41 @@
double _phi;
double _theta;
- public double[] v() {
- switch(_representation) {
- case Cartesian: return new double[] {_x, _y, _z};
- case Spherical: return new double[] {_xyz, _phi, _theta};
- case Cylindrical: return new double[] {_xy, _phi, _z};
- default: return new double[3];
+ public double[] v()
+ {
+ switch(_representation)
+ {
+ case Cartesian: return new double[] {_x, _y, _z};
+ case Spherical: return new double[] {_xyz, _phi, _theta};
+ case Cylindrical: return new double[] {_xy, _phi, _z};
+ default: return new double[3];
}
}
-
- private void cartesianToCylindricalR() {
+
+ private void cartesianToCylindricalR()
+ {
_xy = Math.sqrt(_x*_x+_y*_y);
}
- private void cartesianToPhi() {
+ private void cartesianToPhi()
+ {
_phi = Math.atan2(_y,_x);
}
- private void cartesianToTheta() {
+ private void cartesianToTheta()
+ {
if (Double.isNaN(_xy))
cartesianToCylindricalR();
_theta = Math.atan2(_xy,_z);
}
- public double magnitude() {
+ public double magnitude()
+ {
return _xyz;
}
- public double magnitudeSquared() {
+ public double magnitudeSquared()
+ {
return _xyz*_xyz;
}
@@ -78,7 +89,8 @@
_theta = spt.theta();
}
- public SpacePoint(Hep3Vector vec) {
+ public SpacePoint(Hep3Vector vec)
+ {
_representation = Cartesian;
_x = vec.x();
_y = vec.y();
@@ -87,42 +99,48 @@
_xy = _phi = _theta = Double.NaN;
}
- private void cylindricalToCartesianX() {
+ private void cylindricalToCartesianX()
+ {
_x = _xy*cos(_phi);
}
-
- private void sphericalToCartesianX() {
+
+ private void sphericalToCartesianX()
+ {
_x = _xyz*cos(_phi)*sin(_theta);
}
-
- private void sphericalToCartesianY() {
+
+ private void sphericalToCartesianY()
+ {
_y = _xyz*sin(_phi)*sin(_theta);
}
-
- private void sphericalToCartesianZ() {
+
+ private void sphericalToCartesianZ()
+ {
_z = _xyz*cos(_theta);
}
-
+
/**
* Cartesian x
* @return double
*/
public double x()
- {
+ {
if (Double.isNaN(_x))
- switch(_representation) {
- case Spherical: sphericalToCartesianX(); break;
- case Cylindrical: cylindricalToCartesianX(); break;
+ switch(_representation)
+ {
+ case Spherical: sphericalToCartesianX(); break;
+ case Cylindrical: cylindricalToCartesianX(); break;
}
- return _x;
+ return _x;
}
-
- private void cylindricalToCartesianY() {
+
+ private void cylindricalToCartesianY()
+ {
_y = _xy*sin(_phi);
}
-
-
+
+
/**
* Cartesian y
* @return double
@@ -130,11 +148,12 @@
public double y()
{
if (Double.isNaN(_y))
- switch(_representation) {
- case Spherical: sphericalToCartesianY(); break;
- case Cylindrical: cylindricalToCartesianY(); break;
+ switch(_representation)
+ {
+ case Spherical: sphericalToCartesianY(); break;
+ case Cylindrical: cylindricalToCartesianY(); break;
}
- return _y;
+ return _y;
}
/**
@@ -143,13 +162,14 @@
*/
public double z()
- {
+ {
if (Double.isNaN(_z))
sphericalToCartesianZ();
return _z;
}
- private void sphericalToCylindricalR() {
+ private void sphericalToCylindricalR()
+ {
_xy = _xyz*Math.sin(_theta);
}
@@ -160,11 +180,12 @@
public double rxy()
{
if (Double.isNaN(_xy))
- switch(_representation) {
- case Spherical: sphericalToCylindricalR(); break;
- case Cartesian: cartesianToCylindricalR(); break;
+ switch(_representation)
+ {
+ case Spherical: sphericalToCylindricalR(); break;
+ case Cartesian: cartesianToCylindricalR(); break;
}
- return _xy;
+ return _xy;
}
/**
@@ -183,7 +204,7 @@
* @return double
*/
public double rxyz()
- {
+ {
return _xyz;
}
@@ -192,16 +213,18 @@
* @return double
*/
public double theta()
- {
+ {
if (Double.isNaN(_theta))
- switch(_representation) {
- case Cartesian: cartesianToTheta(); break;
- case Cylindrical: cylindricalToTheta(); break;
+ switch(_representation)
+ {
+ case Cartesian: cartesianToTheta(); break;
+ case Cylindrical: cylindricalToTheta(); break;
}
- return _theta;
+ return _theta;
}
- private void cylindricalToTheta() {
+ private void cylindricalToTheta()
+ {
_theta = Math.atan2(_xy,_z);
}
@@ -240,11 +263,12 @@
if ( !Double.isNaN(_xy) && _xyz != 0. )
return _xy/_xyz;
if (Double.isNaN(_theta))
- switch(_representation) {
- case Cartesian: cartesianToTheta(); break;
- case Cylindrical: cylindricalToTheta(); break;
+ switch(_representation)
+ {
+ case Cartesian: cartesianToTheta(); break;
+ case Cylindrical: cylindricalToTheta(); break;
}
- return sin(_theta);
+ return sin(_theta);
}
/**
@@ -256,11 +280,12 @@
if ( !Double.isNaN(_z) && _xyz != 0. )
return _z/_xyz;
if (Double.isNaN(_theta))
- switch(_representation) {
- case Cartesian: cartesianToTheta(); break;
- case Cylindrical: cylindricalToTheta(); break;
+ switch(_representation)
+ {
+ case Cartesian: cartesianToTheta(); break;
+ case Cylindrical: cylindricalToTheta(); break;
}
- return cos(_theta);
+ return cos(_theta);
}
/**
@@ -338,21 +363,23 @@
}
return o;
}
-
+
// for legacy reasons
// long name to make it visible in code
/**
* for legacy code
* @deprecated
*/
- @Deprecated public double[] getCartesianArray() {
+ @Deprecated public double[] getCartesianArray()
+ {
return new double[] {_x, _y, _z};
}
-
+
/**
* @return the representations of the object
*/
- public Representation getRepresentation() {
+ public Representation getRepresentation()
+ {
return _representation;
}
}
lcsim/src/org/lcsim/spacegeom
diff -u -r1.5 -r1.6
--- SpacePointVector.java 7 Sep 2005 01:09:58 -0000 1.5
+++ SpacePointVector.java 18 Oct 2005 16:39:45 -0000 1.6
@@ -191,7 +191,7 @@
*
*
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: SpacePointVector.java,v 1.6 2005/10/18 16:39:45 ngraf Exp $
*
*/
@@ -200,7 +200,8 @@
SpacePoint startPoint;
SpaceVector direction;
- SpacePointVector() {
+ public SpacePointVector()
+ {
startPoint = new SpacePoint();
direction = new SpaceVector();
}
@@ -208,17 +209,20 @@
/**
* Copy Constructor
*/
- public SpacePointVector(SpacePointVector spv) {
+ public SpacePointVector(SpacePointVector spv)
+ {
startPoint = spv.startPoint;
direction = spv.direction;
}
- public SpacePointVector(SpacePoint start, SpaceVector dir) {
+ public SpacePointVector(SpacePoint start, SpaceVector dir)
+ {
startPoint = start;
direction = dir;
}
- public SpacePointVector(SpacePoint start, SpacePoint end) {
+ public SpacePointVector(SpacePoint start, SpacePoint end)
+ {
startPoint = start;
// This is expensive
direction = new SpaceVector(sub(end, start));
@@ -235,7 +239,8 @@
* v_x
* @return double
*/
- public double v_x() {
+ public double v_x()
+ {
return direction.x();
}
@@ -243,7 +248,8 @@
* v_y
* @return double
*/
- public double v_y() {
+ public double v_y()
+ {
return direction.y();
}
@@ -251,7 +257,8 @@
* v_z
* @return double
*/
- public double v_z() {
+ public double v_z()
+ {
return direction.z();
}
@@ -314,15 +321,18 @@
return ! equals(spv);
}
- public SpacePoint getStartPoint() {
+ public SpacePoint getStartPoint()
+ {
return startPoint;
}
- public SpacePoint getEndPoint() {
+ public SpacePoint getEndPoint()
+ {
return new SpacePoint(add(startPoint, direction));
}
- public SpaceVector getDirection() {
+ public SpaceVector getDirection()
+ {
return direction;
}
@@ -333,13 +343,15 @@
* @param alpha The length parameters. All real values are valid.
* @return A SpacePoint at Origin + alpha* (Endpoint - Origin)
*/
- public SpacePoint getPointAtLength(double alpha) {
+ public SpacePoint getPointAtLength(double alpha)
+ {
return new SpacePoint(add(startPoint, mult(alpha, direction)));
}
-
+
public String toString()
{
- return super.toString()
+// return super.toString()
+ return startPoint.toString()
+ "SpacePointVector:" + "\n"
+ " V_x: " + v_x() + "\n"
+ " V_y: " + v_y() + "\n"
lcsim/src/org/lcsim/spacegeom
diff -u -r1.2 -r1.3
--- SpaceVector.java 7 Sep 2005 01:09:58 -0000 1.2
+++ SpaceVector.java 18 Oct 2005 16:39:45 -0000 1.3
@@ -2,20 +2,28 @@
import hep.physics.vec.Hep3Vector;
-public class SpaceVector extends SpacePoint {
-
+/**
+ *
+ *
+ *@version $Id: SpaceVector.java,v 1.3 2005/10/18 16:39:45 ngraf Exp $
+ */
+public class SpaceVector extends SpacePoint
+{
+
/**
* A vector of zero length doesn't make sense
*/
- SpaceVector() {
+ SpaceVector()
+ {
}
-
+
/**
* Constructor from a SpacePoint
* Creates a vector from (0,0,0) to this point
* @param spt SpacePoint to point to
*/
- public SpaceVector(Hep3Vector spt) {
+ public SpaceVector(Hep3Vector spt)
+ {
super(spt);
}
}
lcsim/src/org/lcsim/spacegeom
diff -u -r1.2 -r1.3
--- SpaceXform.java 31 Aug 2005 07:39:17 -0000 1.2
+++ SpaceXform.java 18 Oct 2005 16:39:46 -0000 1.3
@@ -8,7 +8,7 @@
* value is returned.
*
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: SpaceXform.java,v 1.3 2005/10/18 16:39:46 ngraf Exp $
*/
public abstract class SpaceXform
lcsim/src/org/lcsim/spacegeom
diff -u -r1.1 -r1.2
--- SphericalPath.java 1 Feb 2005 23:57:22 -0000 1.1
+++ SphericalPath.java 18 Oct 2005 16:39:46 -0000 1.2
@@ -2,7 +2,7 @@
/** A Spherical SpacePath
*
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: SphericalPath.java,v 1.2 2005/10/18 16:39:46 ngraf Exp $
*
*/
public class SphericalPath extends SpacePath
lcsim/src/org/lcsim/spacegeom
diff -u -r1.2 -r1.3
--- SphericalPoint.java 31 Aug 2005 07:39:17 -0000 1.2
+++ SphericalPoint.java 18 Oct 2005 16:39:46 -0000 1.3
@@ -3,7 +3,7 @@
/** A Spherical SpacePoint
*
*@author Norman A. Graf
- *@version
+ *@version $Id: SphericalPoint.java,v 1.3 2005/10/18 16:39:46 ngraf Exp $
*@see SpacePoint
*/
lcsim/src/org/lcsim/spacegeom
diff -u -r1.3 -r1.4
--- SphericalPointVector.java 31 Aug 2005 07:39:17 -0000 1.3
+++ SphericalPointVector.java 18 Oct 2005 16:39:46 -0000 1.4
@@ -2,7 +2,7 @@
/** Spherical SpacePointVector
* @author Norman A. Graf
- * @version
+ * @version $Id: SphericalPointVector.java,v 1.4 2005/10/18 16:39:46 ngraf Exp $
*/
public class SphericalPointVector extends SpacePointVector
{
lcsim/src/org/lcsim/spacegeom
diff -u -r1.1 -r1.2
--- SphericalVector.java 31 Aug 2005 07:39:17 -0000 1.1
+++ SphericalVector.java 18 Oct 2005 16:39:46 -0000 1.2
@@ -1,20 +1,26 @@
package org.lcsim.spacegeom;
import static org.lcsim.spacegeom.Representation.Spherical;
-public class SphericalVector extends SpaceVector {
-
+/**
+ *
+ *@version $Id: SphericalVector.java,v 1.2 2005/10/18 16:39:46 ngraf Exp $
+ */
+public class SphericalVector extends SpaceVector
+{
+
/**
* Constructs a Vector from spherical co-ordinates
* @param r
* @param phi
* @param theta
*/
- public SphericalVector(double r, double phi, double theta) {
+ public SphericalVector(double r, double phi, double theta)
+ {
_representation = Spherical;
_xyz = r;
_phi = phi;
_theta = theta;
_x = _y = _z = _xy = Double.NaN;
}
-
+
}
lcsim/src/org/lcsim/spacegeom
diff -u -r1.2 -r1.3
--- TwoD.java 15 Mar 2005 05:14:10 -0000 1.2
+++ TwoD.java 18 Oct 2005 16:39:46 -0000 1.3
@@ -3,7 +3,7 @@
* A class to handle operations in a 2D plane.
*
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: TwoD.java,v 1.3 2005/10/18 16:39:46 ngraf Exp $
*
*/
public class TwoD
lcsim/src/org/lcsim/spacegeom
diff -u -r1.1 -r1.2
--- TwoSegment.java 1 Feb 2005 23:57:22 -0000 1.1
+++ TwoSegment.java 18 Oct 2005 16:39:46 -0000 1.2
@@ -4,7 +4,7 @@
*
*
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: TwoSegment.java,v 1.2 2005/10/18 16:39:46 ngraf Exp $
*
*/
lcsim/src/org/lcsim/spacegeom
diff -u -r1.2 -r1.3
--- TwoSpacePoint.java 7 Mar 2005 06:05:43 -0000 1.2
+++ TwoSpacePoint.java 18 Oct 2005 16:39:46 -0000 1.3
@@ -7,7 +7,7 @@
* Transformations (translations, rotations, etc) are carried out by
* external functions which return new TwoSpacePoints.
*@author Norman A. Graf
- *@version 1.0
+ *@version $Id: TwoSpacePoint.java,v 1.3 2005/10/18 16:39:46 ngraf Exp $
*/
public class TwoSpacePoint
{
CVSspam 0.2.8