feat(ex03): it works

This commit is contained in:
Khaïs COLIN 2025-05-15 10:55:59 +02:00
parent 6f17e2e888
commit b4f48cdfb0
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
8 changed files with 322 additions and 0 deletions

25
ex03/Point.hpp Normal file
View file

@ -0,0 +1,25 @@
#ifndef POINT_HPP
#define POINT_HPP
#include "Fixed.hpp"
class Point {
private:
const Fixed x;
const Fixed y;
public:
Point();
Point(float x, float y);
Point(Point const &other);
Point &operator=(const Point &other);
~Point();
static Fixed triangleArea(Point const &a, Point const &b, Point const &c);
friend std::ostream &operator<<(std::ostream &stream, const Point &point);
};
bool bsp(Point const a, Point const b, Point const c, Point const point);
#endif