removed an unneeded else

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@574261 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2007-09-10 14:36:21 +00:00
parent 2d37d67079
commit c4cc69cf52
1 changed files with 2 additions and 3 deletions

View File

@ -270,10 +270,9 @@ public class Vector3D
} 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);
}