]> rtime.felk.cvut.cz Git - hubacji1/iamcar2.git/commitdiff
Rename bcar's set pose to method
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 15 Mar 2023 11:15:40 +0000 (12:15 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 15 Mar 2023 11:43:17 +0000 (12:43 +0100)
bcar/incl/bcar.hh
bcar/src/bcar.cc

index 72655a23d769b52b9906571cc269fcad7e52ad70..3afde08906b74aebc75014d7bc5ab3b080a99181 100644 (file)
@@ -171,7 +171,7 @@ public:
        void h(double h);
 
        /*! Set pose (`x`, `y`, and `h`.) */
-       void set_pose(Pose const& p);
+       void set_pose_to(Pose const& p);
 
        void rotate(Point const& c, double const angl);
 
index 6c103d6f1a9c516b8d93439bc0fae3b1dc5926ab..44763d7c5a64fe7d89ee56f67f31e1e7c5f0e75a 100644 (file)
@@ -316,7 +316,7 @@ Pose::h(double h)
 }
 
 void
-Pose::set_pose(Pose const& p)
+Pose::set_pose_to(Pose const& p)
 {
        this->x(p.x());
        this->y(p.y());
@@ -384,7 +384,7 @@ PoseRange::set_xyh()
 PoseRange::PoseRange(Pose bp, Pose ep) : _bp(bp), _ep(ep)
 {
        if (this->_bp == this->_ep) {
-               this->set_pose(this->_ep);
+               this->set_pose_to(this->_ep);
        } else {
                this->set_xyh();
        }