#include <point.h>
Public Types | |
typedef std::vector< CompPoint > | vector |
typedef std::vector< CompPoint * > | ptrVector |
typedef std::list< CompPoint > | list |
typedef std::list< CompPoint * > | ptrList |
Public Member Functions | |
CompPoint (int, int) | |
int | x () const |
Get the x coordinate of this point. | |
int | y () const |
Get the y coordinate of this point. | |
void | set (int, int) |
Set the x and y coordinate of this point. | |
void | setX (int) |
Set the x coordinate of this point. | |
void | setY (int) |
Set the y coordinate of this point. | |
bool | operator== (const CompPoint &) const |
bool | operator!= (const CompPoint &) const |
CompPoint & | operator-= (const CompPoint &) |
Takes from both co-ordinates. | |
CompPoint & | operator+= (const CompPoint &) |
Adds to both co-ordinates. | |
CompPoint | operator+ (const CompPoint &) const |
Retuns an added point. | |
CompPoint | operator- (const CompPoint &) const |
Returns a subtracted point. |
int CompPoint::x | ( | ) | const [inline] |
Get the x coordinate of this point.
int CompPoint::y | ( | ) | const [inline] |
Get the y coordinate of this point.
void CompPoint::set | ( | int | , | |
int | ||||
) |
Set the x and y coordinate of this point.
void CompPoint::setX | ( | int | ) |
Set the x coordinate of this point.
void CompPoint::setY | ( | int | ) |
Set the y coordinate of this point.