Point.hpp
1 /* ************************************************************************** */ 2 /* */ 3 /* ::: :::::::: */ 4 /* Point.hpp :+: :+: :+: */ 5 /* +:+ +:+ +:+ */ 6 /* By: gychoi <gychoi@student.42seoul.kr> +#+ +:+ +#+ */ 7 /* +#+#+#+#+#+ +#+ */ 8 /* Created: 2023/08/04 01:20:31 by gychoi #+# #+# */ 9 /* Updated: 2023/08/04 01:39:33 by gychoi ### ########.fr */ 10 /* */ 11 /* ************************************************************************** */ 12 13 #pragma once 14 #ifndef __POINT_HPP__ 15 #define __POINT_HPP__ 16 17 #include "Fixed.hpp" 18 19 class Point 20 { 21 private: 22 const Fixed _x; 23 const Fixed _y; 24 25 public: 26 Point(void); 27 Point(float const x, float const y); 28 Point(Point const& point); 29 Point& operator=(Point const& point); 30 ~Point(void); 31 32 Fixed const& getX(void) const; 33 Fixed const& getY(void) const; 34 }; 35 36 bool bsp(Point const a, Point const b, Point const c, Point const point); 37 38 #endif // POINT_HPP