feat(ex03): it works
This commit is contained in:
parent
6f17e2e888
commit
b4f48cdfb0
8 changed files with 322 additions and 0 deletions
25
ex03/Point.hpp
Normal file
25
ex03/Point.hpp
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue