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

24 lines
276 B
C
Raw Normal View History

2020-01-15 13:13:42 +01:00
#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