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

java.awt.geom.Line2D Doc bug

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.3.1
    • 1.3.0
    • docs
    • ladybird
    • generic
    • generic
    • Verified



        Name: naC79102 Date: 11/30/99

        The documentation for the given methods are same=20
        .implementation differences should be explained in the docs.
        1)public static double ptSegDistSq(double X1,double Y1,
                                          double X2, double Y2,
                                          double PX, double PY)

        2)public static double ptLineDistSq(double X1,double Y1,
                                          double X2,double Y2,
                                          double PX,double PY)
                 return value(double) of these mothods explained by same
        sentences as"
        a double value that is the distance from a specified point to a=20
        specified line segment" .



        ex:
           pts : x1,y1: 2,7
                 x2,y2 :9,7
                 px,py:12,7
                     for these points return value will be different for these
        two methods. ptLineDist method will return value" 0" and ptSegDist
        method will return value "3.0".


        ======================================================================

              jballsunw Jennifer Ball (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: