javafx.util.Math.atan2 has its arguments reversed when calling java.lang.Math.atan2().

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • fx1.3
    • Affects Version/s: fx1.2.1
    • Component/s: javafx
    • Environment:

      1.2.1

      The javafx.util.Math.atan2() function calls java.lang.Math.atan2() with the arguments reversed
      resulting in wrong return values.

      public function atan2(x : Double, y : Double) : Double { return java.lang.Math.atan2(x, y); }

      The JavaDOC for java.lang.Math shows the "y" coming before the "x".

      public static double atan2(double y, double x)

            Assignee:
            Kevin Rushforth
            Reporter:
            Jim Clarke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: