MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / coordToAngleRad

Function coordToAngleRad

3rdparty/qcustomplot/qcustomplot.h:7409–7409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7407 void scaleRange(double factor, double center);
7408 void rescale(bool onlyVisiblePlottables=false);
7409 double coordToAngleRad(double coord) const { return mAngleRad+(coord-mRange.lower)/mRange.size()*(mRangeReversed ? -2.0*M_PI : 2.0*M_PI); } // mention in doc that return doesn't wrap
7410 double angleRadToCoord(double angleRad) const { return mRange.lower+(angleRad-mAngleRad)/(mRangeReversed ? -2.0*M_PI : 2.0*M_PI)*mRange.size(); }
7411 void pixelToCoord(QPointF pixelPos, double &angleCoord, double &radiusCoord) const;
7412 QPointF coordToPixel(double angleCoord, double radiusCoord) const;

Callers 1

setupTickVectorsMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected