00 /*
01  * point3.h
02  *
03  *      Author: Kurt Nørmark / Simonas Saltenis
04  */
05 
06 #ifndef POINT3_H_
07 #define POINT3_H_
08 
09 class Point {
10 private:
11   double x, y;
12 
13 public:
14   Point(double x_coord, double y_coord): x{x_coord}, y{y_coord} {};
15   Point(): x{0.0}, y{0.0} {};
16   double getx () const;
17   double gety () const;
18   void move(double, double);
19   double distance_to(Point) const;
20 
21   Point operator+(const Point&);
22   Point operator++(int);   // int means Postfix ++
23   bool  operator==(const Point&);
24 };
25 
26 std::ostream& operator<<(std::ostream&, const Point&);
27 
28 #endif /* POINT3_H_ */
29