|
QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
|
极坐标点 更多...
#include <qwt_point_polar.h>
Public 成员函数 | |
| QwtPointPolar () | |
| 默认构造函数 - 构造一个空点,半径和方位角都设置为 0.0 | |
| QwtPointPolar (double azimuth, double radius) | |
| 构造一个由半径和方位角指定坐标的点 | |
| QwtPointPolar (const QPointF &) | |
| 从笛卡尔坐标点转换并赋值 | |
| void | setPoint (const QPointF &) |
| 从笛卡尔坐标点转换并赋值 | |
| QPointF | toPoint () const |
| 转换并返回笛卡尔坐标值 | |
| bool | isValid () const |
| 如果 radius() >= 0.0 则返回 true | |
| bool | isNull () const |
| 如果 radius() == 0.0 则返回 true | |
| double | radius () const |
| 返回半径 | |
| double | azimuth () const |
| 返回方位角 | |
| double & | rRadius () |
| 返回半径的引用 | |
| double & | rAzimuth () |
| 返回方位角的引用 | |
| void | setRadius (double) |
| 将半径设置为 radius | |
| void | setAzimuth (double) |
| 将方位角设置为 azimuth | |
| bool | operator== (const QwtPointPolar &) const |
| 比较两个点 | |
| bool | operator!= (const QwtPointPolar &) const |
| 比较两个点 | |
| QwtPointPolar | normalized () const |
| 规范化半径和方位角 | |
极坐标点
|
inline |
默认构造函数 - 构造一个空点,半径和方位角都设置为 0.0
|
inline |
构造一个由半径和方位角指定坐标的点
| QwtPointPolar::QwtPointPolar | ( | const QPointF & | p | ) |
从笛卡尔坐标点转换并赋值
| QwtPointPolar QwtPointPolar::normalized | ( | ) | const |
规范化半径和方位角
| bool QwtPointPolar::operator!= | ( | const QwtPointPolar & | other | ) | const |
比较两个点
| bool QwtPointPolar::operator== | ( | const QwtPointPolar & | other | ) | const |
比较两个点
| void QwtPointPolar::setPoint | ( | const QPointF & | p | ) |
从笛卡尔坐标点转换并赋值
| QPointF QwtPointPolar::toPoint | ( | ) | const |
转换并返回笛卡尔坐标值