commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r574261 - /commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java
Date Mon, 10 Sep 2007 14:36:24 GMT
Author: luc
Date: Mon Sep 10 07:36:21 2007
New Revision: 574261

URL: http://svn.apache.org/viewvc?rev=574261&view=rev
Log:
removed an unneeded else

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java?rev=574261&r1=574260&r2=574261&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/geometry/Vector3D.java Mon
Sep 10 07:36:21 2007
@@ -270,10 +270,9 @@
     } else if ((y >= -threshold) && (y <= threshold)) {
       double inverse  = 1 / Math.sqrt(x * x + z * z);
       return new Vector3D(-inverse * z, 0, inverse * x);
-    } else {
-      double inverse  = 1 / Math.sqrt(x * x + y * y);
-      return new Vector3D(inverse * y, -inverse * x, 0);
     }
+    double inverse  = 1 / Math.sqrt(x * x + y * y);
+    return new Vector3D(inverse * y, -inverse * x, 0);
 
   }
 



Mime
View raw message