GeomConverter/src/org/lcsim/geometry/segmentation
diff -u -r1.2 -r1.3
--- SegmentationUtil.java 7 Dec 2005 10:39:37 -0000 1.2
+++ SegmentationUtil.java 7 Feb 2006 17:11:56 -0000 1.3
@@ -1,7 +1,5 @@
/*
- * SegmentationUtil.java
- *
- * Created on September 26, 2005, 12:11 PM
+ * SegmentationUtil.java Created on September 26, 2005, 12:11 PM
*/
package org.lcsim.geometry.segmentation;
@@ -12,19 +10,17 @@
import static java.lang.Math.sqrt;
/**
- *
+ * Utilities for segmentation classes.
+ *
* @author jeremym
*/
public final class SegmentationUtil
{
- private SegmentationUtil()
- {}
-
public static double getPhi(double x, double y)
{
double phi = atan2(x, y);
- if ( phi < 0 )
+ if (phi < 0)
{
phi += 2 * PI;
}
@@ -34,9 +30,9 @@
public static double getTheta(double x, double y, double z)
{
- double theta = atan(getCylindricalRadius(x, y) / z );
+ double theta = atan(getCylindricalRadius(x, y) / z);
- if ( theta < 0 )
+ if (theta < 0)
{
theta += PI;
}