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

Point2D can use the methods in java.lang.Math internally

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 9, 10, openjfx11
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      javafx.geometry.Point2D can (and perhaps should considering speed and accuracy) use Math in several places:

      * `distance` could use Math.hypot (and `magnitude` is `distance(0,0)`)

      * `angle` could use Math.atan2

      com.sun.javafx.geom.Point2D is a similar case.

        Attachments

          Activity

            People

            • Assignee:
              nlisker Nir Lisker
              Reporter:
              nlisker Nir Lisker
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: