Adding vis bool functions

This commit is contained in:
Noah L. Schrick 2022-03-07 14:52:44 -06:00
parent fdccad4af4
commit c23a853d54
7 changed files with 8 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -36,4 +36,9 @@ double Line::get_vis_start() const
double Line::get_vis_end() const double Line::get_vis_end() const
{ {
return vis_end; return vis_end;
}
bool Line::is_vis()
{
return vis;
} }

View File

@ -14,9 +14,11 @@ class Line
double get_vis_start() const; double get_vis_start() const;
double get_vis_end() const; double get_vis_end() const;
bool is_vis();
private: private:
double slope; double slope;
double ycept; double ycept;
double vis_start; double vis_start;
double vis_end; double vis_end;
bool vis;
}; };

View File

@ -58,7 +58,7 @@ std::vector<Line> construct_HWprob()
std::vector<Line> visible_lines(std::vector<Line> lines) std::vector<Line> visible_lines(std::vector<Line> lines)
{ {
std::vector<Line> line_sol; std::vector<Line> line_sol;
return line_sol; return line_sol;
} }