25 lines
486 B
C++
25 lines
486 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();
|
|
|
|
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
|