cpp02/ex03/Point.hpp

28 lines
522 B
C++

#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();
Fixed getX() const;
Fixed getY() const;
static Fixed triangleArea(Point const &a, Point const &b, Point const &c);
};
std::ostream &operator<<(std::ostream &stream, const Point &point);
bool bsp(Point const a, Point const b, Point const c, Point const point);
#endif