]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/blobdiff - src/bcar.cc
Add gen plot for lra and rra points
[hubacji1/bcar.git] / src / bcar.cc
index 6f6f77e2a0261bb1c7ca3f9cfca4e370f654905d..4e635d6c395a9a8f72519f1c94ea6d2fb7b5252b 100644 (file)
@@ -270,6 +270,14 @@ Line::h() const
        return atan2(this->_e.y() - this->_b.y(), this->_e.x() - this->_b.x());
 }
 
+void
+Line::gen_gnuplot_to(std::ostream& out)
+{
+       this->b().gen_gnuplot_to(out);
+       this->e().gen_gnuplot_to(out);
+       out << std::endl;
+}
+
 std::ostream&
 operator<<(std::ostream& out, Line const& li)
 {
@@ -1037,6 +1045,12 @@ BicycleCar::gen_gnuplot_to(std::ostream& out, GenPlotOpts opts)
        if (opts.CRA_POINT || opts.CAR_POINT) {
                Point::gen_gnuplot_to(out);
        }
+       if (opts.LRA_POINT) {
+               this->lra().gen_gnuplot_to(out);
+       }
+       if (opts.RRA_POINT) {
+               this->rra().gen_gnuplot_to(out);
+       }
        if (opts.LEFT) {
                this->lf().gen_gnuplot_to(out);
                this->lr().gen_gnuplot_to(out);