QwtPointPolar(3)
π QwtPointPolar(3)
okay so bestie, this is the QwtPointPolar(3) page from the Library Functions Manual β it's giving polar-coordinate main character energy and I'm obsessed. Let's get into it. π
β¨ NAME β¨
QwtPointPolar β A point in polar coordinates.
πΈ SYNOPSIS πΈ
#include <qwt_point_polar.h>
π Public Member Functions π
QwtPointPolar ()QwtPointPolar (double azimuth, double radius)QwtPointPolar (const QPointF &)void setPoint (const QPointF &)QPointF toPoint () constbool isValid () constβ Returns true ifradius() >= 0.0.bool isNull () constβ Returns true ifradius() >= 0.0.double radius () constβ Returns the radius.double azimuth () constβ Returns the azimuth.double & rRadius ()β Returns the radius.double & rAzimuth ()β Returns the azimuth.void setRadius (double)β Sets the radius to radius.void setAzimuth (double)β Sets the azimuth to azimuth.bool operator== (const QwtPointPolar &) constβ Compare 2 points.bool operator!= (const QwtPointPolar &) constQwtPointPolar normalized () const
π Detailed Description π
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
Definition at line 28 of file qwt_point_polar.h.
π Constructor & Destructor Documentation π
QwtPointPolar::QwtPointPolar () [inline]
Constructs a null point, with a radius and azimuth set to 0.0.
See also: QPointF::isNull()
Definition at line 71 of file qwt_point_polar.h.
QwtPointPolar::QwtPointPolar (double azimuth, double radius) [inline]
Constructs a point with coordinates specified by radius and azimuth.
Parameters
azimuthβ Azimuthradiusβ Radius
Definition at line 83 of file qwt_point_polar.h.
QwtPointPolar::QwtPointPolar (const QPointF & p)
Convert and assign values from a point in Cartesian coordinates
Parameters
pβ Point in Cartesian coordinates
See also: setPoint(), toPoint()
Definition at line 44 of file qwt_point_polar.cpp.
π Member Function Documentation π
double QwtPointPolar::azimuth () const [inline]
Returns the azimuth.
Definition at line 108 of file qwt_point_polar.h.
bool QwtPointPolar::isNull () const [inline]
Returns true if radius() >= 0.0.
Definition at line 96 of file qwt_point_polar.h.
bool QwtPointPolar::isValid () const [inline]
Returns true if radius() >= 0.0.
Definition at line 90 of file qwt_point_polar.h.
QwtPointPolar QwtPointPolar::normalized () const
Normalize radius and azimuth
When the radius is < 0.0 it is set to 0.0. The azimuth is a value >= 0.0 and < 2 * M_PI.
Returns
- Normalized point
Definition at line 118 of file qwt_point_polar.cpp.
bool QwtPointPolar::operator!= (const QwtPointPolar & other) const
Compare 2 points
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).
Returns
- True if the point is not equal to other; otherwise return false.
See also: normalized()
Definition at line 105 of file qwt_point_polar.cpp.
bool QwtPointPolar::operator== (const QwtPointPolar & other) const
Compare 2 points. 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).
Returns
- True if the point is equal to other; otherwise return false.
See also: normalized()
Definition at line 90 of file qwt_point_polar.cpp.
double QwtPointPolar::radius () const [inline]
Returns the radius.
Definition at line 102 of file qwt_point_polar.h.
double & QwtPointPolar::rAzimuth () [inline]
Returns the azimuth.
Definition at line 120 of file qwt_point_polar.h.
double & QwtPointPolar::rRadius () [inline]
Returns the radius.
Definition at line 114 of file qwt_point_polar.h.
void QwtPointPolar::setAzimuth (double azimuth) [inline]
Sets the azimuth to azimuth.
Definition at line 132 of file qwt_point_polar.h.
void QwtPointPolar::setPoint (const QPointF & p)
Convert and assign values from a point in Cartesian coordinates
Parameters
pβ Point in Cartesian coordinates
Definition at line 54 of file qwt_point_polar.cpp.
void QwtPointPolar::setRadius (double radius) [inline]
Sets the radius to radius.
Definition at line 126 of file qwt_point_polar.h.
QPointF QwtPointPolar::toPoint () const
Convert and return values in Cartesian coordinates
Returns
- Converted point in Cartesian coordinates
Note: Invalid or null points will be returned as QPointF(0.0, 0.0)
See also: isValid(), isNull()
Definition at line 68 of file qwt_point_polar.cpp.
π«Ά Author π«Ά
Generated automatically by Doxygen for Qwt User's Guide from the source code.
cute sign-off time: source/version is the Qwt User's Guide, page QwtPointPolar(3), and there's no date listed β so that's the whole footer vibe. slay. πβ¨
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms