]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/blobdiff - src/pslot.cc
Refactor and rename due to consistency
[hubacji1/bcar.git] / src / pslot.cc
index 07b2cdbeb95d0984ead2dcd26592db4e5546192e..9fdf4daa6e33339c58c9a67ad7fb56d3a22ffb26 100644 (file)
@@ -191,8 +191,8 @@ ParkingSlot::fe()
        this->curb_.intersects_with(b3, c.len());
        double max_to_slot;
        auto const& rr = c.rr();
-       auto const& i1 = this->curb_.in1();
-       auto const& i2 = this->curb_.in2();
+       auto const& i1 = this->curb_.i1();
+       auto const& i2 = this->curb_.i2();
        if (rr.edist(i1) < rr.edist(i2)) {
                max_to_slot = rr.min_angle_between(b3, i1);
        } else {
@@ -227,8 +227,8 @@ ParkingSlot::fe()
        Line li2(b2, e2);
        li1.intersects_with(li2);
        PoseRange pr;
-       pr.x(li1.in1().x());
-       pr.y(li1.in1().y());
+       pr.x(li1.i1().x());
+       pr.y(li1.i1().y());
        pr.b(b);
        pr.e(e);
        return pr;