/************************************************************************ * * * File: point2.cpp * * * * Author: Robb T. Koether * * * * Date: Sep 9, 2003 * * * * Purpose: This file implements the functions of the Point2 class * * * ************************************************************************/ #include "point2.h" /************************************************************************ * * * Function: equal * * * ************************************************************************/ bool Point2::equal(const Point2& p) const { return x == p.x && y == p.y; } /************************************************************************ * * * Function: operator<< * * * ************************************************************************/ ostream& operator<<(ostream& out, const Point2& p) { p.Output(out); return out; } /************************************************************************ * * * Function: operator== * * * ************************************************************************/ bool operator==(const Point2& p, const Point2& q) { return p.equal(q); }