A point in polar coordinates.
#include <qwt_point_polar.h>
QwtPointPolar ()
QwtPointPolar (double azimuth, double radius)
QwtPointPolar (const QwtPointPolar &)
QwtPointPolar (const QPointF &)
void setPoint (const QPointF &)
QPointF toPoint () const
bool isValid () const
bool isNull () const
double radius () const
double azimuth () const
double & rRadius ()
double & rAzimuth ()
void setRadius (double)
void setAzimuth (double)
bool operator== (const QwtPointPolar &) const
bool operator!= (const QwtPointPolar &) const
QwtPointPolar normalized () const
A point in polar coordinates.
In polar coordinates a point is determined by an angle and a distance. See http://en.wikipedia.org/wiki/Polar_coordinate_system
See also:
QPointF::isNull
Parameters:
azimuth Azimuth
radius Radius
Parameters:
other Other point
Parameters:
p Point in Cartesian coordinates
See also:
setPoint(), toPoint()
Returns the azimuth.
Returns true if radius() >= 0.0.
Returns true if radius() >= 0.0.
When the radius is < 0.0 it is set to 0.0. The azimuth is a value >= 0.0 and < 2 * M_PI.
Two points are equal to each other if radius and azimuth-coordinates are the same. Points are not equal, when the azimuth differs, but other.azimuth() == azimuth() % (2 * PI).
See also:
normalized()
Two points are equal to each other if radius and azimuth-coordinates are the same. Points are not equal, when the azimuth differs, but other.azimuth() == azimuth() % (2 * PI).
See also:
normalized()
Returns the radius.
Returns the azimuth.
Returns the radius.
Sets the atimuth to atimuth.
Parameters:
p Point in Cartesian coordinates
Sets the radius to radius.
Note:
Invalid or null points will be returned as QPointF(0.0, 0.0)
See also:
isValid(), isNull()
Generated automatically by Doxygen for Qwt User's Guide from the source code.