1 #ifndef DLL_STRAIGHTLINE_HPP
2 #define DLL_STRAIGHTLINE_HPP
19 typedef std::pair<size_t, size_t> Coordinates;
27 void addInPoint (
const Coordinates & xy) { addPointToSet(xy, setIn); }
33 void addDownPoint(
const Coordinates & xy) { addPointToSet(xy, setDown); }
39 void addUpPoint (
const Coordinates & xy) { addPointToSet(xy, setUp); }
53 friend std::ostream &
operator<<(std::ostream & out,
57 void addPointToSet(
const Coordinates & xy, std::vector<Point> &
set);
60 std::vector<Point> setIn;
61 std::vector<Point> setDown;
62 std::vector<Point> setUp;
64 double a, b, lower_bound, upper_bound;
69 #endif // DLL_STRAIGHTLINE_HPP