31#include "qwtcore_global.h"
46 bool isNull()
const noexcept;
48 double x()
const noexcept;
49 double y()
const noexcept;
50 double z()
const noexcept;
52 double& rx()
noexcept;
53 double& ry()
noexcept;
54 double& rz()
noexcept;
56 void setX(
double x)
noexcept;
57 void setY(
double y)
noexcept;
58 void setZ(
double y)
noexcept;
60 QPointF toPoint()
const noexcept;
62 bool operator==(
const QwtPoint3D&)
const noexcept;
63 bool operator!=(
const QwtPoint3D&)
const noexcept;
74#ifndef QT_NO_DEBUG_STREAM
75QWTCORE_EXPORT QDebug operator<<(QDebug,
const QwtPoint3D&);
109 return m_x == 0.0 && m_y == 0.0 && m_z == 0.0;
171 return QPointF(m_x, m_y);
177 return (m_x == other.m_x) && (m_y == other.m_y) && (m_z == other.m_z);
183 return !operator==(other);
QwtPoint3D class defines a 3D point in double coordinates
Definition qwt_point_3d.h:40
double z() const noexcept
Return the z-coordinate of the point
Definition qwt_point_3d.h:125
double & ry() noexcept
Return a reference to the y-coordinate of the point
Definition qwt_point_3d.h:137
void setX(double x) noexcept
Set the x-coordinate of the point to x
Definition qwt_point_3d.h:149
void setY(double y) noexcept
Set the y-coordinate of the point to y
Definition qwt_point_3d.h:155
double y() const noexcept
Return the y-coordinate of the point
Definition qwt_point_3d.h:119
bool operator!=(const QwtPoint3D &) const noexcept
Return true if this point and other are different
Definition qwt_point_3d.h:181
double & rz() noexcept
Return a reference to the z-coordinate of the point
Definition qwt_point_3d.h:143
double x() const noexcept
Return the x-coordinate of the point
Definition qwt_point_3d.h:113
double & rx() noexcept
Return a reference to the x-coordinate of the point
Definition qwt_point_3d.h:131
QPointF toPoint() const noexcept
Definition qwt_point_3d.h:169
void setZ(double y) noexcept
Set the z-coordinate of the point to z
Definition qwt_point_3d.h:161
bool operator==(const QwtPoint3D &) const noexcept
Return true if this point and other are equal
Definition qwt_point_3d.h:175
bool isNull() const noexcept
Definition qwt_point_3d.h:107
QwtPoint3D()
Default constructor - constructs a null point
Definition qwt_point_3d.h:82