#include <point.h>
Public Member Functions | |
Point () | |
Construct a point at (0, 0). | |
Point (int x_, int y_) | |
Construct a point. | |
int | x () const |
int | y () const |
void | setX (int x_new) |
void | setY (int y_new) |
Point & | operator+= (const Point &other) |
Shift a point. | |
Point & | operator-= (const Point &other) |
Shift a point. | |
Point | operator+ (const Point &other) const |
Return a shifted point. | |
Point | operator- (const Point &other) const |
Return a shifted point. | |
Point | operator- () const |
return the negative of a point | |
bool | operator== (const Point &other) const |
Compare two points. | |
bool | operator!= (const Point &other) const |
Compare two points. |
Wt::Point::Point | ( | ) | [inline] |
Construct a point at (0, 0).
Wt::Point::Point | ( | int | x_, | |
int | y_ | |||
) | [inline] |
Construct a point.
bool Wt::Point::operator!= | ( | const Point & | other | ) | const [inline] |
Compare two points.
Point Wt::Point::operator- | ( | ) | const [inline] |
return the negative of a point
bool Wt::Point::operator== | ( | const Point & | other | ) | const [inline] |
Compare two points.
void Wt::Point::setX | ( | int | x_new | ) | [inline] |
void Wt::Point::setY | ( | int | y_new | ) | [inline] |
int Wt::Point::x | ( | ) | const [inline] |
int Wt::Point::y | ( | ) | const [inline] |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.