---
name: "QwtDoublePoint"
section: "3"
platform: "linux"
package: "libqwt-doc"
version: "4.2.0-6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/QwtDoublePoint"
---

# QwtDoublePoint(3)

## NAME

QwtDoublePoint -

## SYNOPSIS

## Detailed Description

The QwtDoublePoint class defines a point in double coordinates

Definition at line 22 of file qwt\_double\_rect.h.

### Public Member Functions

**QwtDoublePoint** ()\
 **QwtDoublePoint** (double x, double y)\
 **QwtDoublePoint** (const QPoint &)\
 bool **isNull** () const\
 double **x** () const\
 double **y** () const\
 void **setX** (double x)\
 void **setY** (double y)\
 double & **rx** ()\
 double & **ry** ()\
 bool **operator==** (const **QwtDoublePoint** &) const\
 bool **operator!=** (const **QwtDoublePoint** &) const\
 const **QwtDoublePoint** **operator-** () const\
 const **QwtDoublePoint** **operator+** (const **QwtDoublePoint** &) const\
 const **QwtDoublePoint** **operator-** (const **QwtDoublePoint** &) const\
 const **QwtDoublePoint** **operator \*** (double) const\
 const **QwtDoublePoint** **operator/** (double) const\
 **QwtDoublePoint** & **operator+=** (const **QwtDoublePoint** &)\
 **QwtDoublePoint** & **operator-=** (const **QwtDoublePoint** &)\
 **QwtDoublePoint** & **operator \*=** (double)\
 **QwtDoublePoint** & **operator/=** (double)\

## Constructor & Destructor Documentation

### QwtDoublePoint::QwtDoublePoint ()

Constructs a point with coordinates (0.0, 0.0) (**isNull()** returns TRUE).

Definition at line 14 of file qwt\_double\_rect.cpp.

Referenced by operator \*(), operator+(), operator-(), and operator/().

### QwtDoublePoint::QwtDoublePoint (double x, double y)

Constructs a point with x value xpos and y value ypos.

Definition at line 22 of file qwt\_double\_rect.cpp.

### QwtDoublePoint::QwtDoublePoint (const QPoint &)

Copy constructor.

Definition at line 29 of file qwt\_double\_rect.cpp.

## Member Function Documentation

### bool QwtDoublePoint::isNull () const

Returns TRUE if both the x value and the y value are 0; otherwise returns FALSE. Definition at line 181 of file qwt\_double\_rect.h.

### const QwtDoublePoint QwtDoublePoint::operator \* (double) const

Returns the point formed by multiplying both components by c.

Definition at line 81 of file qwt\_double\_rect.cpp.

References QwtDoublePoint().

### QwtDoublePoint & QwtDoublePoint::operator \*= (double)

Multiplies this point's x and y by c, and returns a reference to this point.

Definition at line 113 of file qwt\_double\_rect.cpp.

### bool QwtDoublePoint::operator!= (const QwtDoublePoint &) const

Returns TRUE if point and other are not equal; otherwise returns FALSE.

Definition at line 42 of file qwt\_double\_rect.cpp.

References operator==().

### const QwtDoublePoint QwtDoublePoint::operator+ (const QwtDoublePoint & other) const

Returns the point formed by adding both components by the components of other. Each component is added separately. Definition at line 62 of file qwt\_double\_rect.cpp.

References d\_x, d\_y, and QwtDoublePoint().

### QwtDoublePoint & QwtDoublePoint::operator+= (const QwtDoublePoint &)

Adds point other to this point and returns a reference to this point.

Definition at line 95 of file qwt\_double\_rect.cpp.

References d\_x, and d\_y.

### const QwtDoublePoint QwtDoublePoint::operator- (const QwtDoublePoint & other) const

Returns the point formed by subtracting both components by the components of other. Each component is subtracted separately. Definition at line 73 of file qwt\_double\_rect.cpp.

References d\_x, d\_y, and QwtDoublePoint().

### const QwtDoublePoint QwtDoublePoint::operator- () const

Returns the point formed by changing the sign of both components, equivalent to QDoublePoint(-x(), -y()); Definition at line 52 of file qwt\_double\_rect.cpp.

References QwtDoublePoint().

### QwtDoublePoint & QwtDoublePoint::operator-= (const QwtDoublePoint &)

Subtracts point other from this point and returns a reference to this point.

Definition at line 104 of file qwt\_double\_rect.cpp.

References d\_x, and d\_y.

### const QwtDoublePoint QwtDoublePoint::operator/ (double) const

Returns the point formed by dividing both components by c.

Definition at line 88 of file qwt\_double\_rect.cpp.

References QwtDoublePoint().

### QwtDoublePoint & QwtDoublePoint::operator/= (double)

Divides both x and y by c, and returns a reference to this point.

Definition at line 122 of file qwt\_double\_rect.cpp.

### bool QwtDoublePoint::operator== (const QwtDoublePoint &) const

Returns TRUE if point and other are equal; otherwise returns FALSE.

Definition at line 36 of file qwt\_double\_rect.cpp.

References d\_x, and d\_y.

Referenced by operator!=().

### double & QwtDoublePoint::rx ()

Returns a reference to the x coordinate of the point.

Definition at line 211 of file qwt\_double\_rect.h.

### double & QwtDoublePoint::ry ()

Returns a reference to the y coordinate of the point.

Definition at line 217 of file qwt\_double\_rect.h.

### void QwtDoublePoint::setX (double x)

Sets the x coordinate of the point to x.

Definition at line 199 of file qwt\_double\_rect.h.

### void QwtDoublePoint::setY (double y)

Sets the y coordinate of the point to x.

Definition at line 205 of file qwt\_double\_rect.h.

### double QwtDoublePoint::x () const

Returns the x coordinate of the point.

Definition at line 187 of file qwt\_double\_rect.h.

Referenced by QwtDoubleRect::contains(), QwtPlotPicker::cursorLabel(), QwtDoubleRect::moveCenter(), and QwtPlotPicker::transform().

### double QwtDoublePoint::y () const

Returns the y coordinate of the point.

Definition at line 193 of file qwt\_double\_rect.h.

Referenced by QwtDoubleRect::contains(), QwtPlotPicker::cursorLabel(), QwtDoubleRect::moveCenter(), and QwtPlotPicker::transform().

## Author

Generated automatically by Doxygen for Qwt User's Guide from the source code.
