Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8108905

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

    Details

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

      1.2.1

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: