|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
A point in polar coordinates. More...
#include <qwt_point_polar.h>
Public Member Functions | |
| QwtPointPolar () | |
| Default constructor - constructs a null point with radius and azimuth set to 0.0. | |
| QwtPointPolar (double azimuth, double radius) | |
| Constructs a point with coordinates specified by radius and azimuth. | |
| QwtPointPolar (const QPointF &) | |
| Convert and assign values from a point in Cartesian coordinates. | |
| void | setPoint (const QPointF &) |
| Convert and assign values from a point in Cartesian coordinates. | |
| QPointF | toPoint () const |
| Convert and return values in Cartesian coordinates. | |
| bool | isValid () const |
| Return true if radius() >= 0.0 | |
| bool | isNull () const |
| Return true if radius() == 0.0 | |
| double | radius () const |
| Return the radius | |
| double | azimuth () const |
| Return the azimuth | |
| double & | rRadius () |
| Return a reference to the radius | |
| double & | rAzimuth () |
| Return a reference to the azimuth | |
| void | setRadius (double) |
| Set the radius to radius | |
| void | setAzimuth (double) |
| Set the azimuth to azimuth | |
| bool | operator== (const QwtPointPolar &) const |
| Compare 2 points. | |
| bool | operator!= (const QwtPointPolar &) const |
| Compare 2 points. | |
| QwtPointPolar | normalized () const |
| Normalize radius and azimuth. | |
A point in polar coordinates.
|
inline |
Default constructor - constructs a null point with radius and azimuth set to 0.0.
|
inline |
Constructs a point with coordinates specified by radius and azimuth.
| QwtPointPolar::QwtPointPolar | ( | const QPointF & | p | ) |
Convert and assign values from a point in Cartesian coordinates.
| QwtPointPolar QwtPointPolar::normalized | ( | ) | const |
Normalize radius and azimuth.
| bool QwtPointPolar::operator!= | ( | const QwtPointPolar & | other | ) | const |
Compare 2 points.
| bool QwtPointPolar::operator== | ( | const QwtPointPolar & | other | ) | const |
Compare 2 points.
| void QwtPointPolar::setPoint | ( | const QPointF & | p | ) |
Convert and assign values from a point in Cartesian coordinates.
| QPointF QwtPointPolar::toPoint | ( | ) | const |
Convert and return values in Cartesian coordinates.