31 #ifndef OPENPSTD_GEOMETRY_H 32 #define OPENPSTD_GEOMETRY_H 46 std::vector<int> array;
48 Point() : x(0), y(0), z(0) { };
54 Point(
int x,
int y,
int z = 0);
71 std::ostream &operator<<(std::ostream &str,
Point const &v);
74 #endif //OPENPSTD_GEOMETRY_H This is the general namespace of the OpenPSTD application.
Definition: Boundary.cpp:33
friend Point operator+(Point a, Point b)
Addition operator for points.
Definition: Geometry.cpp:16
friend Point operator-(Point a, Point b)
Subtraction operator for points.
Definition: Geometry.cpp:21
The points of the grid, represented by 2D integer vectors.
Definition: Geometry.h:43