#ifndef POINTH #define POINTH #include "offset.h" struct line; //line.h includes point.h struct point { double x; double y; point(double x, double y): x(x), y(y) {} point(const line& l1, const line& l2) throw (int); point& operator+=(const offset& off) { x += off.dx; y += off.dy; return *this; } }; inline point operator+(point p, const offset& off) {return p += off;} inline point operator+(const offset& off, point p) {return p += off;} #endif