#ifndef EDGE_H #define EDGE_H #include #include #include "ipoint2.h" using namespace std; class Edge { // Public member functions public: Edge(); Edge(const iPoint2& A, const iPoint2& B); bool Equal(const Edge& e) const; bool LessThan(const Edge& e) const; // Public data members public: iPoint2 lower; iPoint2 upper; }; bool operator==(const Edge& e1, const Edge& e2); bool operator!=(const Edge& e1, const Edge& e2); bool operator<(const Edge& e1, const Edge& e2); bool operator>(const Edge& e1, const Edge& e2); bool operator<=(const Edge& e1, const Edge& e2); bool operator>=(const Edge& e1, const Edge& e2); #endif