Return-Path: Delivered-To: apmail-commons-commits-archive@locus.apache.org Received: (qmail 73745 invoked from network); 10 Sep 2007 14:36:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2007 14:36:48 -0000 Received: (qmail 91088 invoked by uid 500); 10 Sep 2007 14:36:40 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 91002 invoked by uid 500); 10 Sep 2007 14:36:40 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 90988 invoked by uid 99); 10 Sep 2007 14:36:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 07:36:40 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 14:36:46 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A9EE91A983A; Mon, 10 Sep 2007 07:36:25 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: luc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070910143625.A9EE91A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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); }