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:
parent
2d37d67079
commit
c4cc69cf52
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue