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

Wish: M_2PI QtMath

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.15.0
    • Core: Other
    • None
    • All

    Description

      QtMath wishlist

      I, for one, would welcome a new constant:

      M_2PI   Two M_PI  2π

      One wavelength plots of trigonometric functions, for example, Sine, Cosine, use Range(0, 2π). While creating plots of triangle and square waves with fourier series of sines and cosines in Q3DBars and QGraphicsView, each graph requires defining (M_PI * 2). It would be convenient to write qSin(M_2PI) instead of qSin(M_PI * 2).

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            psnarf Henry Pfeil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes