CPP02/ex03/inc/Point.hpp
2025-03-27 16:15:11 +01:00

37 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* :::::::: */
/* Point.hpp :+: :+: */
/* +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/03/27 13:09:47 by whaffman #+# #+# */
/* Updated: 2025/03/27 16:09:07 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#pragma once
#include "Fixed.hpp"
class Point {
public:
Point();
Point(const Point &point);
Point(float x, float y);
Point(int x, int y);
~Point();
Point &operator=(const Point &point);
Fixed x(void) const;
Fixed y(void) const;
void x(Fixed x);
void y(Fixed y);
private:
Fixed _x;
Fixed _y;
};