|
blip
0.1
|
A cartesian point: a value with x and y coordinates. More...
#include <Point.hpp>
Public Member Functions | |
| Point (T x, T y) | |
| Construct a new point with the given coordinates. More... | |
| ~Point () | |
| Destructor. More... | |
| T | getX () const |
| Get the x coordinate. More... | |
| void | setX (T x) |
| Set the x coordinate. More... | |
| T | getY () const |
| Get the y coordinate. More... | |
| void | setY (T y) |
| Set the y coordinate. More... | |
| Point & | operator+= (const Point &other) |
| Add a point to this one. More... | |
| Point & | operator-= (const Point &other) |
| Subtract a point from this one. More... | |
A cartesian point: a value with x and y coordinates.
|
inline |
Construct a new point with the given coordinates.
|
inline |
Destructor.
|
inline |
Get the x coordinate.
|
inline |
Get the y coordinate.
|
inline |
Set the x coordinate.
|
inline |
Set the y coordinate.