36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* Point.hpp :+: :+: */
|
|
/* +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/03/27 13:09:47 by whaffman #+# #+# */
|
|
/* Updated: 2025/04/04 12:13:03 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#pragma once
|
|
|
|
#include "Fixed.hpp"
|
|
|
|
class Point {
|
|
public:
|
|
Point();
|
|
Point(const Point &point);
|
|
Point(Fixed x, Fixed 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;
|
|
}; |