Public Member Functions | |
Point () | |
~Point () | |
Point (const Point &rhs) | |
void | swap (Point &rhs) throw () |
Point & | operator= (const Point &rhs) |
Point & | operator+= (const Point &rhs) |
Point & | operator-= (const Point &rhs) |
Point & | operator *= (const Point &rhs) |
Point & | operator/= (const Point &rhs) |
bool | operator== (const Point &rhs) |
Point (int xPoint, int yPoint) | |
Public Attributes | |
int | x |
int | y |
|
Creates a new point with given X and Y position. |
|
Destructor. |
|
Copy constructor. |
|
Create a new Point based on two locations. |
|
Assignment operator. |
|
Assign and add. |
|
Assign and subtract. |
|
Assign and multiply. |
|
Assign and divide. |
|
Compare two Points. |