"final" keyword.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1581389 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4670a7fb9a
commit
5c70086611
|
@ -2432,17 +2432,18 @@ public class FastMath {
|
||||||
* @return atan(xa + xb) (or angle shifted by {@code PI} if leftPlane is true)
|
* @return atan(xa + xb) (or angle shifted by {@code PI} if leftPlane is true)
|
||||||
*/
|
*/
|
||||||
private static double atan(double xa, double xb, boolean leftPlane) {
|
private static double atan(double xa, double xb, boolean leftPlane) {
|
||||||
boolean negate = false;
|
|
||||||
|
|
||||||
if (xa == 0.0) { // Matches +/- 0.0; return correct sign
|
if (xa == 0.0) { // Matches +/- 0.0; return correct sign
|
||||||
return leftPlane ? copySign(Math.PI, xa) : xa;
|
return leftPlane ? copySign(Math.PI, xa) : xa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final boolean negate;
|
||||||
if (xa < 0) {
|
if (xa < 0) {
|
||||||
// negative
|
// negative
|
||||||
xa = -xa;
|
xa = -xa;
|
||||||
xb = -xb;
|
xb = -xb;
|
||||||
negate = true;
|
negate = true;
|
||||||
|
} else {
|
||||||
|
negate = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xa > 1.633123935319537E16) { // Very large input
|
if (xa > 1.633123935319537E16) { // Very large input
|
||||||
|
|
Loading…
Reference in New Issue