TDT4102-Ovinger/Oving1/include/Graph_lib/Point.h

24 lines
276 B
C++

#ifndef POINT_GUARD
#define POINT_GUARD
namespace Graph_lib {
struct Point
{
int x;
int y;
};
inline bool operator==(Point a, Point b)
{
return a.x == b.x && a.y == b.y;
}
inline bool operator!=(Point a, Point b)
{
return !(a == b);
}
} // namespace Graph_lib
#endif