/ ex02 / Point.hpp
Point.hpp
 1  #pragma once
 2  
 3  #include "Fixed.hpp"
 4  
 5  class Point {
 6  private:
 7    Fixed const x;
 8    Fixed const y;
 9  
10  public:
11    Point();
12    Point(const float x, const float y);
13    Point(const Point &other);
14    Point &operator=(const Point &other);
15    ~Point();
16  
17    Fixed getX() const { return x; }
18    Fixed getY() const { return y; }
19  };