#include <objects.h>
Public Methods | |
TPoint& | operator+= (const TPoint &adder) |
TPoint& | operator-= (const TPoint &subber) |
Public Attributes | |
int | x |
int | y |
Friends | |
TPoint | operator- (const TPoint &one, const TPoint &two) |
TPoint | operator+ (const TPoint &one, const TPoint &two) |
int | operator== (const TPoint &one, const TPoint &two) |
int | operator!= (const TPoint &one, const TPoint &two) |
TPoint is a simple object that can be used to record a coordinate on the screen. For this, two public variables are available: `x' and `y'.
Definition at line 28 of file objects.h.
|
Adds the coordinate of another point to this point. Returns *this. |
|
Subtracts the coordinate of another point from this point. Returns *this. |
|
Returns True if two points are not equal (have different coordinate), returns False otherwise. |
|
Calculates the sum of two points. Returns a point with the resulting sum. |
|
Calculates the distance between two points. Returns a point with the resulting difference. |
|
Returns True if two points are equal (have the same coordinate), returns False otherwise. |
|
Is the screen column of the point. |
|
Is the screen row of the point. |