#include "point.h" #include Point::Point(int ix, int iy) : x {ix}, y {iy} { } int Point::distance_to(Point const& other) const { int dx { x - other.x }; int dy { y - other.y }; return sqrt(dx*dx + dy*dy); } bool Point::operator==(Point const& rhs) const { return x == rhs.x and y == rhs.y; } std::ostream& operator<<(std::ostream & os, Point const& rhs) { // TODO return os; }