lcsim/src/org/lcsim/spacegeom
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;
+ }
}