Print

Print


Commit in lcsim/src/org/lcsim/spacegeom on MAIN
SpacePoint.java+11-161.4 -> 1.5
added getRepresentation()

lcsim/src/org/lcsim/spacegeom
SpacePoint.java 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- SpacePoint.java	31 Aug 2005 07:39:17 -0000	1.4
+++ SpacePoint.java	13 Sep 2005 09:31:18 -0000	1.5
@@ -1,23 +1,11 @@
 package org.lcsim.spacegeom;
-import hep.physics.vec.Hep3Vector;
-
 import static java.lang.Math.cos;
 import static java.lang.Math.sin;
-
-import java.io.*;
-
-/**  Describes a space point.
- * The default Space point is at the origin.
- * Derived classes can be used to set values in cartesian, cylindrical
- * or spherical coordinates.  Point is set in the constructor and
- * cannot be changed.  The methods simply return different coordinates.
- * Transformations (translations, rotations, etc) are carried out by
- * external functions which return new SpacePoints.
- *
- */
-
-import static org.lcsim.spacegeom.Representation.Cartesian;
 import static java.lang.Math.sqrt;
+import static org.lcsim.spacegeom.Representation.Cartesian;
+import hep.physics.vec.Hep3Vector;
+
+import java.io.Serializable;
 
 public class SpacePoint implements Serializable, Cloneable, Hep3Vector
 {
@@ -360,5 +348,12 @@
     @Deprecated public double[] getCartesianArray() {
         return new double[] {_x, _y, _z};
     }
+
+    /**
+     * @return the representations of the object
+     */
+    public Representation getRepresentation() {
+        return _representation;
+    }
 }
 
CVSspam 0.2.8