11 lines
187 B
C++
11 lines
187 B
C++
#include "Point.h"
|
|
|
|
Point::Point() : x(0), y(0) {}
|
|
|
|
Point::Point(pos_t x, pos_t y) : x(x), y(y) {}
|
|
|
|
bool Point::operator<(const Point &o) const {
|
|
return x == o.x ? y < o.y : x < o.x;
|
|
}
|
|
|