StuBS
|
Coordinate on the graphic screen. More...
#include <graphics/primitives.h>
Public Member Functions | |
Point () | |
Default Constructor. More... | |
Point (int x, int y) | |
Constructor. More... | |
Point | operator+ (const Point &that) const |
Summation of two points. | |
Point & | operator+= (const Point &that) |
Assignment summation of two points. | |
Point | operator- (const Point &that) const |
Difference of two points. | |
Point & | operator-= (const Point &that) |
Assignment difference of two points. | |
Public Attributes | |
int | x |
X Position. | |
int | y |
X Position. | |
Coordinate on the graphic screen.
|
inline |
Default Constructor.
Initializing the point to the initial position (0, 0)
|
inline |
Constructor.
x X Position
y Y Position