1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #pragma once
- class Point
- {
- double m_x, m_y;
- public:
- explicit Point(double x = 0, double y = 0);
- Point(const Point&);
- Point(Point&&);
- ~Point();
- void Get_all(double&, double&);
- void Get_all(double&, double&) const;
- void Set_all(double&, double&);
-
- Point& operator=(const Point&);
- Point& operator=(Point&&);
-
- Point operator+(const Point&) const;
- Point operator+(const double) const;
-
- Point& operator+=(const Point&);
- Point& operator+=(const double);
-
- Point operator+() const;
- Point operator-() const;
- };
- Point operator+(const double, const Point&);
- Point operator-(const Point&, const double);
- Point operator-(const Point&, const Point&);
- Point& operator-=(Point&, const Point&);
|