Skip to content
Snippets Groups Projects
point.cpp 235 B
Newer Older
#include "point.h"

Brandon Lai-Cheong's avatar
Brandon Lai-Cheong committed

bool Point::operator==(const Point &other) const {
    return (x == other.x) && (y == other.y);
}

std::ostream &operator<<(std::ostream &os, Point const &p) { 
    return os << "(" << p.x << "," << p.y << ")";
}