00001 /* 00002 * Point.h 00003 * 00004 * Created on: Nov 12, 2011 00005 * Author: martin 00006 */ 00007 00008 #ifndef POINT_H_ 00009 #define POINT_H_ 00010 00011 namespace geo 00012 { 00013 00018 struct Point 00019 { 00020 public: 00021 Point(double lat = 0, double lon = 0); 00022 double lat; 00023 double lon; 00029 bool operator==(Point const& other) const; 00030 bool operator!=(Point const& other) const; 00031 bool operator<=(Point const& other) const; 00032 bool operator>=(Point const& other) const; 00033 bool operator>(Point const& other) const; 00039 bool operator<(Point const& other) const; 00040 bool before(Point const& other, double tolerance) const; 00041 bool close(Point const& other, double tolerance) const; 00042 }; 00043 00044 } /* namespace geo */ 00045 #endif /* POINT_H_ */