Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Patch, Important
Description
If i check the content of ATan2 class, the value method is coded like this
public double value(double x, double y)
{ return FastMath.atan2(x, y); }with
x Abscissa for which the function value should be computed.
y Ordinate for which the function value should be computed.
But the FastMath.atan2 method is declared like this
/**
- Two arguments arctangent function
- @param y ordinate
- @param x abscissa
- @return phase angle of point (x,y) between {@code -PI} and {@code PI}
*/
public static double atan2(double y, double x)
Which means that ordinate and abscissa are inverted. This should be fixed.