Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20197

QLineF::angle() documentation is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.4
    • 4.7.3
    • Documentation
    • None
    • 86608d537eabc3cf7e1d1ddd1d0a2f90ccc2de2a

    Description

      The documentation for QLineF::angle() claims:

      "Positive values for the angles mean counter-clockwise while negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position."

      This is not true. The return value is normalized to [0,360], see http://qt.gitorious.org/qt/qt/blobs/v4.7.3/src/corelib/tools/qline.cpp#line579

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            boddie David Boddie (Inactive)
            nx Nikola Kovacs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes