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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • fx1.3
    • fx1.2.1
    • javafx
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: