Point.class.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* Point.class.hpp :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@gmail.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2025/07/17 19:24:44 by bchanot #+# #+# */
  9. /* Updated: 2025/07/18 19:14:47 by Bastien Chanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #ifndef POINT_CLASS_H
  13. # define POINT_CLASS_H
  14. #include "Fixed.class.hpp"
  15. class Point {
  16. public:
  17. Point(void);
  18. Point(Point const &src);
  19. Point(float const &x, float const &y);
  20. ~Point(void);
  21. Point &operator=(Point const &rhs);
  22. Fixed getX(void) const;
  23. Fixed getY(void) const;
  24. private:
  25. Fixed const _x;
  26. Fixed const _y;
  27. };
  28. #endif