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) |
|
Constructs a point with coordinates (0.0, 0.0) (isNull() returns TRUE).
|
|
Constructs a point with x value xpos and y value ypos.
|
|
Copy constructor.
|
|
Returns TRUE if both the x value and the y value are 0; otherwise returns FALSE. |
|
Returns the point formed by multiplying both components by c.
|
|
Multiplies this point's x and y by c, and returns a reference to this point.
|
|
Returns TRUE if point and other are not equal; otherwise returns FALSE.
|
|
Returns the point formed by adding both components by the components of other. Each component is added separately. |
|
Adds point other to this point and returns a reference to this point.
|
|
Returns the point formed by subtracting both components by the components of other. Each component is subtracted separately. |
|
Returns the point formed by changing the sign of both components, equivalent to QDoublePoint(-x(), -y()); |
|
Subtracts point other from this point and returns a reference to this point.
|
|
Returns the point formed by dividing both components by c.
|
|
Divides both x and y by c, and returns a reference to this point.
|
|
Returns TRUE if point and other are equal; otherwise returns FALSE.
|
|
Returns a reference to the x coordinate of the point.
|
|
Returns a reference to the y coordinate of the point.
|
|
Sets the x coordinate of the point to x.
|
|
Sets the y coordinate of the point to x.
|
|
Returns the x coordinate of the point.
|
|
Returns the y coordinate of the point.
|