Public Member Functions | |
DoublePoint () | |
DoublePoint (double x, double y) | |
DoublePoint (const Gdk::Point &) | |
bool | is_null () const |
double | get_x () const |
double | get_y () const |
void | set_x (double x) |
void | set_y (double y) |
bool | operator== (const DoublePoint &) const |
bool | operator!= (const DoublePoint &) const |
const DoublePoint | operator- () const |
const DoublePoint | operator+ (const DoublePoint &) const |
const DoublePoint | operator- (const DoublePoint &) const |
const DoublePoint | operator * (double) const |
const DoublePoint | operator/ (double) const |
DoublePoint & | operator+= (const DoublePoint &) |
DoublePoint & | operator-= (const DoublePoint &) |
DoublePoint & | operator *= (double) |
DoublePoint & | operator/= (double) |
|
Constructs a point with coordinates (0.0, 0.0) (is_null() returns TRUE).
|
|
Constructs a point with x value xpos and y value ypos.
|
|
Copy constructor.
|
|
Returns the x coordinate of the point.
|
|
Returns the y coordinate of the point.
|
|
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.
|
|
Sets the x coordinate of the point to x.
|
|
Sets the y coordinate of the point to x.
|