#include "point.h"

/*********************************************
 ** FUNCTION DEFINITIONS
 *********************************************/
point operator+(point a, point b) {
  point S;
  S.x = a.x + b.x;
  S.y = a.y + b.y;
  return S;
}
point operator/(point P, double z) {
  point Q;
  Q.x = P.x / z;
  Q.y = P.y / z;
  return Q;
}
ostream& operator<<(ostream& OUT, point p) {
  OUT << '(' << p.x << ',' << p.y << ')';
  return OUT;
}
istream& operator>>(istream& IN, point &p) {
  char c;
  IN >> c >> p.x >> c >> p.y >> c;
  return IN;
}